Skip to content

Commit

Permalink
Black formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
canismarko committed Jan 17, 2024
1 parent c8d6eec commit f1e6bab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apstools/devices/srs570_preamplifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,14 @@
)


class GainMixin():
class GainMixin:
"""A signal where the settling time depends on the pre-amp gain.
Used to introduce a specific settle time when setting to account
for the amp's R–C relaxation time when changing gain.
"""

@staticmethod
def _settle_time(gain_value: int, gain_unit: int, gain_mode: str):
"""Determine the best settle time for a given combination of parameters.
Expand Down
1 change: 0 additions & 1 deletion apstools/devices/tests/test_srs570_preamplifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,3 @@ def test_preamp_gain_mode_settling(mocked_setter):
status = preamp.gain_mode.set("LOW DRIFT")
# Check that the EpicsSignal's ``set`` was called with correct settle_time
mocked_setter.assert_called_with("LOW DRIFT", timeout=DEFAULT_WRITE_TIMEOUT, settle_time=settle_time)

0 comments on commit f1e6bab

Please sign in to comment.