Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Make pyright happy
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuck99 committed Jun 11, 2024
1 parent 2ac4362 commit 486d71e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/hyperion/experiment_plans/oav_snapshot_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def oav_snapshot_plan(
oav_parameters: OAVParameters,
wait: bool = True,
) -> MsgGenerator:
omegas = parameters.snapshot_omegas_deg
if not omegas:
return
yield from _setup_oav(composite, parameters, oav_parameters)
for omega in parameters.snapshot_omegas_deg:
for omega in omegas:
yield from _take_oav_snapshot(composite, parameters, omega)
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def test_oav_rotation_snapshot_triggered_event(
]:
mx.upsert_data_collection.reset_mock()
event_doc = dict(TestData.test_event_document_oav_rotation_snapshot)
event_doc["data"]["oav_snapshot_last_saved_path"] = snapshot["filename"]
event_doc["data"]["oav_snapshot_last_saved_path"] = snapshot["filename"] # type: ignore
callback.activity_gated_event(
TestData.test_event_document_oav_rotation_snapshot
)
Expand Down

0 comments on commit 486d71e

Please sign in to comment.