Skip to content

Commit

Permalink
Add noqas until FastCS public interface fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
GDYendell committed Jul 26, 2024
1 parent f4348d2 commit 0de401e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/eiger_fastcs/eiger_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class EigerHandler:
update_period: float = 0.2

async def put(self, controller: "EigerController", _: AttrW, value: Any) -> None:
parameters_to_update = await controller._connection.put(self.name, value)
parameters_to_update = await controller._connection.put(self.name, value) # noqa
if not parameters_to_update:
parameters_to_update = [self.name.split("/")[-1]]
print(f"Manually fetching parameter {parameters_to_update}")
Expand All @@ -80,7 +80,7 @@ async def put(self, controller: "EigerController", _: AttrW, value: Any) -> None

async def update(self, controller: "EigerController", attr: AttrR) -> None:
try:
response = await controller._connection.get(self.name)
response = await controller._connection.get(self.name) # noqa
await attr.set(response["value"])
except Exception as e:
print(f"Failed to get {self.name}:\n{e.__class__.__name__} {e}")
Expand All @@ -97,7 +97,7 @@ async def update(self, controller: "EigerController", attr: AttrR) -> None:
await super().update(controller, attr)
if isinstance(attr, AttrRW):
# Sync readback value to demand
await attr._write_display_callback(attr.get())
await attr._write_display_callback(attr.get()) # noqa

self.first_poll_complete = True

Expand Down

0 comments on commit 0de401e

Please sign in to comment.