From 80ea8e630a55a970560c2381663c4cb07a1d218c Mon Sep 17 00:00:00 2001 From: Noemi Frisina <54588199+noemifrisina@users.noreply.github.com> Date: Fri, 19 Jul 2024 15:01:05 +0100 Subject: [PATCH] Pass bit_depth to nexgen-server payload (#128) --- src/mx_bluesky/I24/serial/write_nexus.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mx_bluesky/I24/serial/write_nexus.py b/src/mx_bluesky/I24/serial/write_nexus.py index 1e0176a7d..9796df345 100644 --- a/src/mx_bluesky/I24/serial/write_nexus.py +++ b/src/mx_bluesky/I24/serial/write_nexus.py @@ -66,6 +66,7 @@ def call_nexgen( transmission = (float(caget(Eiger.pv.transmission)),) if det_type == Eiger.name: + bit_depth = int(caget(pv.eiger_bitdepthrbv)) logger.debug( f"Call to nexgen server with the following chip definition: \n{chip_prog_dict}" ) @@ -90,6 +91,7 @@ def call_nexgen( "transmission": transmission[0], "visitpath": os.fspath(meta_h5.parent), "wavelength": wavelength, + "bit_depth": bit_depth, } logger.info(f"Sending POST request to {url} with payload:") logger.info(pprint.pformat(payload))