mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 22:40:02 +02:00
Wip
This commit is contained in:
parent
0b3af803ce
commit
a1da362d2e
@ -160,17 +160,10 @@ void DataProcessor::CreateFirstFiles(
|
|||||||
if (dataFile_ == nullptr) {
|
if (dataFile_ == nullptr) {
|
||||||
throw sls::RuntimeError("file object not contstructed");
|
throw sls::RuntimeError("file object not contstructed");
|
||||||
}
|
}
|
||||||
dataFile_->CloseFile();
|
CloseFiles();
|
||||||
/*
|
|
||||||
#ifdef HDF5C
|
|
||||||
if (virtualFile_) {
|
|
||||||
virtualFile_->CloseFile();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
*/
|
|
||||||
// master file write enabled
|
// master file write enabled
|
||||||
if (masterFile_) {
|
if (masterFile_) {
|
||||||
masterFile_->CloseFile();
|
|
||||||
masterFile_->CreateMasterFile(filePath, fileNamePrefix, fileIndex,
|
masterFile_->CreateMasterFile(filePath, fileNamePrefix, fileIndex,
|
||||||
overWriteEnable, silentMode, attr);
|
overWriteEnable, silentMode, attr);
|
||||||
}
|
}
|
||||||
@ -313,7 +306,7 @@ uint64_t DataProcessor::ProcessAnImage(char *buf) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// write to file
|
// write to file
|
||||||
if (dataFile_ != nullptr) {
|
if (dataFile_) {
|
||||||
try {
|
try {
|
||||||
dataFile_->WriteToFile(
|
dataFile_->WriteToFile(
|
||||||
buf + FIFO_HEADER_NUMBYTES,
|
buf + FIFO_HEADER_NUMBYTES,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user