https://github.com/pmiddend/mr-t
Connect to a Dectris detector stream and forward it to both a file and a UDP interface
https://github.com/pmiddend/mr-t
Last synced: about 1 year ago
JSON representation
Connect to a Dectris detector stream and forward it to both a file and a UDP interface
- Host: GitHub
- URL: https://github.com/pmiddend/mr-t
- Owner: pmiddend
- License: agpl-3.0
- Created: 2025-01-07T09:36:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-28T10:09:03.000Z (over 1 year ago)
- Last Synced: 2025-03-06T01:53:31.242Z (about 1 year ago)
- Language: Python
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mr-t - connect to Eiger, stream to file and UDP
[](https://github.com/pmiddend/mr-t/actions/workflows/ci.yaml)
[](https://www.gnu.org/licenses/gpl-3.0)
## Python setup
This project uses [uv](https://docs.astral.sh/uv/) to manage its dependencies. If you're using Nix, there's also a `flake.nix` to get you started (`nix develop .#uv2nix` works to give you a dev environment).
Code formatting is done with [ruff](https://docs.astral.sh/ruff/), just use `ruff format src`.
## Running mr-t
If you have uv installed (see above) running the main program should be as easy as:
```
uv run mr_t --detector-zmq-host $host
```
Which will receive images from `$host:9999`.
# References
- All the ZMQ (v1) parsing code comes from Tim Schoof from the [asapo_eiger_connector](https://gitlab.desy.de/fs-sc/asapo_eiger_connector) repository.
- All the HDF5 writing code comes from Tim Schoof from the [asapo_eiger_connector](https://gitlab.desy.de/fs-sc/asapo_nexus_writer) repository.