Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
minor adaptation to operation with RestAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Samartsev committed Jan 18, 2024
1 parent 422bc76 commit 3ddcf77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pymepix/processing/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def _reconfigureProcessor(self):
PipelinePacketProcessor,
packet_processor=self.packet_processor
)
@property
def pipeline_packet_processor(self):
return self.getStage(2)



Expand Down
4 changes: 3 additions & 1 deletion pymepix/timepixdevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def _initDACS(self):
self.loadConfig()
self.setConfigClass(SophyConfig)

def setConfigClass(self, klass: TimepixConfig):
def setConfigClass(self, klass):
if type(klass) == str:
klass = globals()[klass]
if issubclass(klass, TimepixConfig):
self._config_class = klass
else:
Expand Down

0 comments on commit 3ddcf77

Please sign in to comment.