Skip to content

Commit

Permalink
Change EpicsAdapter constructor args to match tickit changes
Browse files Browse the repository at this point in the history
The db_file parameter has been changed to an optional parameter.

See DiamondLightSource/tickit#134
  • Loading branch information
joeshannon committed Jul 13, 2023
1 parent 808fdff commit f7fb57b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/tickit_devices/femto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __call__(self) -> Component: # noqa: D102
device=FemtoDevice(
initial_gain=self.initial_gain, initial_current=self.initial_current
),
adapters=[FemtoAdapter(db_file=self.db_file, ioc_name=self.ioc_name)],
adapters=[FemtoAdapter(ioc_name=self.ioc_name, db_file=self.db_file)],
)


Expand Down
2 changes: 1 addition & 1 deletion src/tickit_devices/pneumatic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ def __call__(self) -> Component: # noqa: D102
device=PneumaticDevice(
initial_speed=self.initial_speed, initial_state=self.initial_state
),
adapters=[PneumaticAdapter(db_file=self.db_file, ioc_name=self.ioc_name)],
adapters=[PneumaticAdapter(ioc_name=self.ioc_name, db_file=self.db_file)],
)
2 changes: 1 addition & 1 deletion src/tickit_devices/synchrotron/synchrotron_current.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,6 @@ def __call__(self) -> Component: # noqa: D102
SynchrotronCurrentTCPAdapter(
TcpServer(self.host, self.port, self.format)
),
SynchrotronCurrentEpicsAdapter(self.db_file, self.ioc_name),
SynchrotronCurrentEpicsAdapter(self.ioc_name, self.db_file),
],
)
2 changes: 1 addition & 1 deletion src/tickit_devices/synchrotron/synchrotron_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,6 @@ def __call__(self) -> Component: # noqa: D102
SynchrotronMachineStatusTCPAdapter(
TcpServer(self.host, self.port, self.format)
),
SynchrotronMachineStatusEpicsAdapter(self.db_file, self.ioc_name),
SynchrotronMachineStatusEpicsAdapter(self.ioc_name, self.db_file),
],
)
2 changes: 1 addition & 1 deletion src/tickit_devices/synchrotron/synchrotron_topup.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,6 @@ def __call__(self) -> Component: # noqa: D102
SynchrotronTopUpTCPAdapter(
TcpServer(self.host, self.port, self.format)
),
SynchrotronTopUpEpicsAdapter(self.db_file, self.ioc_name),
SynchrotronTopUpEpicsAdapter(self.ioc_name, self.db_file),
],
)

0 comments on commit f7fb57b

Please sign in to comment.