Skip to content

Conversation

@jsouter
Copy link
Collaborator

@jsouter jsouter commented Apr 26, 2024

WIP: absolutely no tests in this right now
May be a bit overkill but I've had some trouble when getting the Merlin in the lab to load its configuration files properly, so thought would be helpful to have a sim.
Some commands aren't implemented and there's definitely lots of weird quirks not replicated, some parameters will be automatically set when other parameters are set etc, that's not in here.
But it should accept and parse all the GET/SET/CMD commands supported in the manual/in the Odin driver, and spit out a correctly formatted image with headers, definitely for single threshold mode (have tested an acquisition through the Odin driver and been able to get images into an H5 file) and I believe it should work for the colour modes too.

I made a TCPPushIo class resembling the ZeroMqPushIo from tickit but using asyncio.start_server instead of creating a socket from a factory method. The Merlin only sends out image data on its TCP data port (6342) and doesn't accept any input on this port, so this seemed better than trying to use the existing TCP IO classes in tickit. Happy to keep namespaced under Merlin as some of this design may be Merlin specific but could see it being made more generic.

@jsouter jsouter requested review from GDYendell and abbiemery April 26, 2024 14:50
@GDYendell
Copy link
Contributor

I think this looks pretty good. My only comments are that it still references the ZMQ adapter / io and the all caps attributes on MerlinDetector are a bit odd.

@jsouter
Copy link
Collaborator Author

jsouter commented May 13, 2024

I think this looks pretty good. My only comments are that it still references the ZMQ adapter / io and the all caps attributes on MerlinDetector are a bit odd.

Good spot. The attributes could be reworked if needed.

@jsouter jsouter force-pushed the merlin branch 2 times, most recently from 7c34ee0 to 7552032 Compare May 15, 2024 15:27
…thing

Fix default value of operating energy

Move merlin parameters to parameters.py

access merlin commands through dictionary
@garryod garryod requested a review from coretl July 15, 2024 12:28
@coretl coretl removed their request for review July 15, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants