Skip to content

Commit

Permalink
Fix typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-fernandes committed Aug 13, 2024
1 parent aabd6d7 commit c1e7562
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from collections import OrderedDict
from enum import Enum
from typing import Union

import bluesky.plan_stubs as bps
from dodal.devices.bimorph_mirrors.CAENels_bimorph_mirror_interface import (
Expand Down Expand Up @@ -152,7 +153,7 @@ def pencil_beam_scan_2d_slit(
inactive_slit_size: float,
number_of_slit_positions: int,
bimorph_settle_time: float,
initial_voltage_list: list = None,
initial_voltage_list: Union[list, None] = None,
):
"""Bluesky plan that performs a pencil beam scan across one axis using a 2-dimensional slit.
Expand Down Expand Up @@ -182,7 +183,7 @@ def pencil_beam_scan_2d_slit(
print("Turning bimorph on...")
bimorph.protected_set(bimorph.on_off, 1)

start_voltages = bimorph.read_from_all_channels_by_attribute(
start_voltages: list = bimorph.read_from_all_channels_by_attribute(
ChannelAttribute.VOUT_RBV
)

Expand Down

0 comments on commit c1e7562

Please sign in to comment.