Skip to content

Commit

Permalink
Add ignored parameters
Browse files Browse the repository at this point in the history
These should not be included in the PV interface or polled
  • Loading branch information
GDYendell committed Dec 12, 2023
1 parent b26a057 commit f6e2859
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/eiger_fastcs/eiger_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@
from fastcs.datatypes import Bool, Float, Int, String
from fastcs.wrappers import command, scan

IGNORED_PARAMETERS = [
"countrate_correction_table",
"pixel_mask",
"threshold/1/pixel_mask",
"threshold/2/pixel_mask",
"flatfield",
"threshold/1/flatfield",
"threshold/2/flatfield",
"board_000/th0_humidity",
"board_000/th0_temp",
]


@dataclass
class EigerHandler:
Expand Down Expand Up @@ -131,7 +143,9 @@ async def initialise(self) -> None:
for index, subsystem in enumerate(subsystems):
for mode in modes:
response = await connection.get(f"{subsystem}/api/1.8.0/{mode}/keys")
subsystem_parameters = response["value"]
subsystem_parameters = [
p for p in response["value"] if p not in IGNORED_PARAMETERS
]
requests = [
connection.get(f"{subsystem}/api/1.8.0/{mode}/{item}")
for item in subsystem_parameters
Expand Down

0 comments on commit f6e2859

Please sign in to comment.