Skip to content

Commit

Permalink
Get bit_depth from eiger PV and pass it to nexus writer
Browse files Browse the repository at this point in the history
  • Loading branch information
noemifrisina committed Jul 19, 2024
1 parent f421ce8 commit bd98168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mx_bluesky/I24/serial/write_nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def call_nexgen(
wavelength = float(caget(pv.dcm_lambda))

if det_type == Eiger.name:
bit_depth = int(caget(pv.eiger_bitdepthrbv)) # noqa: F841
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 @@ -91,7 +91,7 @@ def call_nexgen(
"transmission": transmission[0],
"visitpath": os.fspath(meta_h5.parent),
"wavelength": wavelength,
# TODO add bit_depth to payload
"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 bd98168

Please sign in to comment.