Skip to content

Commit

Permalink
7.0.3.rc2 (#866) (#867)
Browse files Browse the repository at this point in the history
*7.0.3.rc2
* moench: handling bug in post processing from receiver when partial_frames policy and empty frame happens, only json header without data is sent
  • Loading branch information
thattil committed Nov 14, 2023
1 parent 4b414bf commit cfbe3c8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
9 changes: 7 additions & 2 deletions RELEASE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SLS Detector Package Major Release 7.0.3 released on 13.11.2023
SLS Detector Package Major Release 7.0.3 released on 14.11.2023
===============================================================

This document describes the differences between v7.0.3 and v7.0.2
Expand Down Expand Up @@ -113,7 +113,12 @@ This document describes the differences between v7.0.3 and v7.0.2
Previously, it crashed when nframes > 0. Fixed.


* [Moench] Moench interpolation issues fixed.
* [Moench] Interpolation issues fixed.


* [Moench] When receiver in discard_partial mode and gets an empty frame,
it sends a zmq packet with header and no data. This is handled in post
processing as a temporary solution.



Expand Down
27 changes: 18 additions & 9 deletions slsDetectorCalibration/dataStructures/moench03T1ReceiverDataNew.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class moench03T1ReceiverDataNew : public slsDetectorData<uint16_t> {
int sc_width;
int sc_height;
const int nSamples;

int headerSize;
double ghost[200][25];

// Single point of definition if we need to customize
Expand All @@ -62,7 +62,7 @@ class moench03T1ReceiverDataNew : public slsDetectorData<uint16_t> {
moench03T1ReceiverDataNew(int ns = 5000)
: slsDetectorData<uint16_t>(400, 400, ns * 2 * 32 + sizeof(header)),
nSamples(ns) {

headerSize=112;
int nadc = 32;
int sc_width = 25;
int sc_height = 200;
Expand Down Expand Up @@ -250,13 +250,22 @@ class moench03T1ReceiverDataNew : public slsDetectorData<uint16_t> {
virtual char *readNextFrame(std::ifstream &filebin, int &ff, int &np,
char *data) {
np = 0;
if (filebin.is_open()) {
if (filebin.read(data, dataSize)) {
ff = getFrameNumber(data);
np = getPacketNumber(data);
return data;
}
}
if (filebin.is_open()) {

if (filebin.read(data, headerSize)) {
ff = getFrameNumber(data);
np = getPacketNumber(data);
if (np>0)
filebin.read(data+headerSize, dataSize-headerSize);
return data;
}
/* if (filebin.read(data, dataSize)) { */
/* ff = getFrameNumber(data); */
/* np = getPacketNumber(data); */
/* return data; */
/* } */
}

return nullptr;
}

Expand Down

0 comments on commit cfbe3c8

Please sign in to comment.