Skip to content

Commit

Permalink
Convert video duration to int for SLIMM
Browse files Browse the repository at this point in the history
  • Loading branch information
GodVenn committed Apr 28, 2023
1 parent fdd6f23 commit db8cd5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/isar/storage/slimm_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ def _construct_multiform_request_video(
"Mission.MissionId": metadata.mission_id,
"Mission.Client": "Equinor",
"VideoMetadata.Timestamp": inspection.metadata.start_time.isoformat(), # noqa: E501
"VideoMetadata.Duration": str(inspection.metadata.duration), # type: ignore
# Converting to int because SLIMM expects an int, while we use floats in operations.
"VideoMetadata.Duration": str(int(inspection.metadata.duration)), # type: ignore
"VideoMetadata.X": str(inspection.metadata.pose.position.x),
"VideoMetadata.Y": str(inspection.metadata.pose.position.y),
"VideoMetadata.Z": str(inspection.metadata.pose.position.z),
Expand Down

0 comments on commit db8cd5b

Please sign in to comment.