Skip to content

Commit

Permalink
Merge branch 'tickets/DM-42677'
Browse files Browse the repository at this point in the history
  • Loading branch information
kfindeisen committed Jan 26, 2024
2 parents 2b5d982 + a39a272 commit da2e9fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class NextVisitModel:
groupId: str
coordinateSystem: int
position: typing.List[int]
startTime: float
rotationSystem: int
cameraAngle: float
filters: str
Expand Down Expand Up @@ -254,6 +253,11 @@ async def main() -> None:

logging.info(f"message deserialized {next_visit_message_initial}")

if not next_visit_message_initial["message"]["instrument"]:
logging.info("Message does not have an instrument. Assuming "
"it's not an observation.")
continue

next_visit_message_updated = NextVisitModel(
salIndex=next_visit_message_initial["message"]["salIndex"],
scriptSalIndex=next_visit_message_initial["message"][
Expand All @@ -265,7 +269,6 @@ async def main() -> None:
"coordinateSystem"
],
position=next_visit_message_initial["message"]["position"],
startTime=next_visit_message_initial["message"]["startTime"],
rotationSystem=next_visit_message_initial["message"][
"rotationSystem"
],
Expand Down

0 comments on commit da2e9fd

Please sign in to comment.