remove run_name and number_frames_expected from the metadata(they are calculated on stremvis side)

This commit is contained in:
Dmitry Ozerov
2021-08-20 12:14:14 +02:00
committed by Data Backend account
parent 6f594e9503
commit ec6050f331
3 changed files with 2 additions and 14 deletions
+1 -3
View File
@@ -130,8 +130,6 @@ We use following fields in the JSON header:
|daq_rec|uint32|daqrec from detector header|
|pedestal_file|string|Path to pedestal file|
|gain_file|string|Path to gain file|
|number_frames_expected|int|Number of expected frames|
|run_name|string|Name of the run|
|detector_name|string|Name of the detector|
|htype|string|Value: "array-1.0"|
|type|string|Value: "uint16"|
@@ -176,4 +174,4 @@ format.
![image_pulse_stream](../docs/sf_daq_buffer-PulseStream.jpg)
This is also a "public interface" for anyone who wants to get the current
system pulse_id.
system pulse_id.
+1 -3
View File
@@ -130,8 +130,6 @@ We use following fields in the JSON header:
|daq_rec|uint32|daqrec from detector header|
|pedestal_file|string|Path to pedestal file|
|gain_file|string|Path to gain file|
|number_frames_expected|int|Number of expected frames|
|run_name|string|Name of the run|
|detector_name|string|Name of the detector|
|htype|string|Value: "array-1.0"|
|type|string|Value: "uint16"|
@@ -176,4 +174,4 @@ format.
![image_pulse_stream](../docs/sf_daq_buffer-PulseStream.jpg)
This is also a "public interface" for anyone who wants to get the current
system pulse_id.
system pulse_id.
-8
View File
@@ -74,14 +74,6 @@ void ZmqLiveSender::send(const ImageMetadata& meta, const char *data)
gain_file.SetString(config_.GAIN_FILENAME.c_str(), header_alloc);
header.AddMember("gain_file", gain_file, header_alloc);
header.AddMember("number_frames_expected", 10000, header_alloc);
rapidjson::Value run_name;
run_name.SetString(
to_string(uint64_t(meta.pulse_id/10000)*10000).c_str(),
header_alloc);
header.AddMember("run_name", run_name, header_alloc);
rapidjson::Value detector_name;
detector_name.SetString(config_.detector_name.c_str(), header_alloc);
header.AddMember("detector_name", detector_name, header_alloc);