mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00
changes for single images with index 0 not realized as caught and therefore no virtual file created, fixed
This commit is contained in:
parent
88b6fabb0d
commit
f5773de068
@ -260,7 +260,7 @@ void DataProcessor::CloseFiles() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DataProcessor::EndofAcquisition(uint64_t numf) {
|
void DataProcessor::EndofAcquisition(uint64_t numf) {
|
||||||
if (*fileWriteEnable && file->GetFileType() == HDF5 && numf) {
|
if (*fileWriteEnable && file->GetFileType() == HDF5) {
|
||||||
file->EndofAcquisition(numf);
|
file->EndofAcquisition(numf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -494,10 +494,13 @@ void UDPStandardImplementation::stopReceiver(){
|
|||||||
//create virtual file
|
//create virtual file
|
||||||
if (fileWriteEnable && fileFormatType == HDF5) {
|
if (fileWriteEnable && fileFormatType == HDF5) {
|
||||||
uint64_t maxIndexCaught = 0;
|
uint64_t maxIndexCaught = 0;
|
||||||
|
bool anycaught = false;
|
||||||
for (vector<DataProcessor*>::const_iterator it = dataProcessor.begin(); it != dataProcessor.end(); ++it) {
|
for (vector<DataProcessor*>::const_iterator it = dataProcessor.begin(); it != dataProcessor.end(); ++it) {
|
||||||
maxIndexCaught = max(maxIndexCaught, (*it)->GetProcessedMeasurementIndex());
|
maxIndexCaught = max(maxIndexCaught, (*it)->GetProcessedMeasurementIndex());
|
||||||
|
if((*it)->GetMeasurementStartedFlag())
|
||||||
|
anycaught = true;
|
||||||
}
|
}
|
||||||
if (maxIndexCaught)
|
if (anycaught)
|
||||||
dataProcessor[0]->EndofAcquisition(maxIndexCaught); //to create virtual file
|
dataProcessor[0]->EndofAcquisition(maxIndexCaught); //to create virtual file
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user