-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add FrameReceiver controllers, move FP controllers to odin_data.py #33
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #33 +/- ##
==========================================
+ Coverage 81.38% 82.30% +0.91%
==========================================
Files 10 9 -1
Lines 360 390 +30
==========================================
+ Hits 293 321 +28
- Misses 67 69 +2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like the right sort of thing. I think I am OK with having fp and fr in one file as they are all very small classes.
Could you change DAQ
-> OdinData
in the class names and move FrameProcessorAdapterController
above FrameProcessorController
so that they are in hierarchical order?
Have done that, had to overload init as the forward reference needed for _subcontroller_cls needed to be moved into function scope |
Added the decoder sub controller, can add in a few tests if needed. |
Ah I didn't think about that. In that case it is not worth it. The AdapterControllers can go after. |
Do we know where this decoder
|
Will look into it, I know that config/hdf/file/name had to be changed to "prefix" because of some interaction between fastcs and odin that makes "name" an invalid name for a parameter. edit: EigerFrameDecoder::get_status() (and the dummy decoders) add "name" to the status_msg, will test if either changing that to another key fixes it or if it needs to be formally added to the API somewhere. |
Okay yeah, changing the key to "dummy_name" as a quick test in DummyUDPFrameDecoder makes the signal work properly. I suppose we could either remove the parameter from odin, rename it, or add some logic in odin-fastcs to do special handling of attributes called "name" |
Ah so I suggest we rename to |
It would be good to add
|
Could you squash this into one commit and force push, and mark as ready for review if you are happy with it? |
Move FrameProccesor controllers to odin_data.py
Thanks @jsouter ! |
This didn't break things. |
Addressing #11 (see also odin-detector/odin-data#346), using the generic OdinDataAdapter as the basis for DAQController and DAQAdapterController which are inherited by FrameProcessor(/Receiver)Controller and FrameProcessor(/Receiver)AdapterController.
edit: WIP, can break down further and add a FrameReceiverDecoderController