v1.0.0-rc.31
This commit is contained in:
@@ -323,7 +323,14 @@ inline void CBOR_ENC_START_USER_DATA(CborEncoder& encoder, const char* key,
|
||||
j["bit_depth_readout"] = message.bit_depth_readout.value();
|
||||
if (!message.writer_notification_zmq_addr.empty())
|
||||
j["writer_notification_zmq_addr"] = message.writer_notification_zmq_addr;
|
||||
|
||||
if (message.summation_mode.has_value())
|
||||
j["summation_mode"] = message.summation_mode.value();
|
||||
if (message.overwrite.has_value())
|
||||
j["overwrite"] = message.overwrite.value();
|
||||
if (message.xfel_pulse_id.has_value())
|
||||
j["xfel_pulse_id"] = message.xfel_pulse_id.value();
|
||||
if (message.hdf5_format_version.has_value())
|
||||
j["hdf5_format_version"] = message.hdf5_format_version.value();
|
||||
auto str = j.dump();
|
||||
|
||||
CBOR_ENC(encoder, key, str);
|
||||
@@ -468,7 +475,11 @@ void CBORStream2Serializer::SerializeImageInternal(CborEncoder &mapEncoder, cons
|
||||
CBOR_ENC(mapEncoder, "saturated_pixel_count", message.saturated_pixel_count);
|
||||
CBOR_ENC(mapEncoder, "error_pixel_count", message.error_pixel_count);
|
||||
CBOR_ENC(mapEncoder, "strong_pixel_count", message.strong_pixel_count);
|
||||
CBOR_ENC(mapEncoder, "min_viable_pixel_value", message.min_viable_pixel_value);
|
||||
CBOR_ENC(mapEncoder, "max_viable_pixel_value", message.max_viable_pixel_value);
|
||||
CBOR_ENC(mapEncoder, "data_collection_efficiency", message.image_collection_efficiency);
|
||||
CBOR_ENC(mapEncoder, "packets_expected", message.packets_expected);
|
||||
CBOR_ENC(mapEncoder, "packets_received", message.packets_received);
|
||||
CBOR_ENC(mapEncoder, "bkg_estimate", message.bkg_estimate);
|
||||
CBOR_ENC(mapEncoder, "adu_histogram", message.adu_histogram);
|
||||
CBOR_ENC(mapEncoder, "roi_integrals", message.roi);
|
||||
|
||||
Reference in New Issue
Block a user