Skip to content

Commit

Permalink
Pass bit_depth to nexgen-server payload
Browse files Browse the repository at this point in the history
  • Loading branch information
noemifrisina committed Jul 19, 2024
1 parent 4e45b75 commit 2f4858f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mx_bluesky/I24/serial/write_nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def call_nexgen(
wavelength = float(caget(pv.dcm_lambda))

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}"
)
Expand All @@ -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))
Expand Down

0 comments on commit 2f4858f

Please sign in to comment.