mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 17:10:03 +02:00
slsreceiver: removed warnings
This commit is contained in:
parent
4849063b6c
commit
1b92b01a46
@ -242,7 +242,7 @@ public:
|
|||||||
Exception::dontPrint(); //to handle errors
|
Exception::dontPrint(); //to handle errors
|
||||||
|
|
||||||
hsize_t dims[3];
|
hsize_t dims[3];
|
||||||
herr_t status_n = dspace->getSimpleExtentDims(dims);
|
dspace->getSimpleExtentDims(dims);
|
||||||
dims[0] += initialNumImages;
|
dims[0] += initialNumImages;
|
||||||
|
|
||||||
dset->extend(dims);
|
dset->extend(dims);
|
||||||
@ -290,9 +290,9 @@ public:
|
|||||||
FileAccPropList flist;
|
FileAccPropList flist;
|
||||||
flist.setFcloseDegree(H5F_CLOSE_STRONG);
|
flist.setFcloseDegree(H5F_CLOSE_STRONG);
|
||||||
if(!owenable)
|
if(!owenable)
|
||||||
fd = new H5File( fname.c_str(), H5F_ACC_EXCL, NULL, flist );
|
fd = new H5File( fname.c_str(), H5F_ACC_EXCL, FileCreatPropList::DEFAULT, flist );
|
||||||
else
|
else
|
||||||
fd = new H5File( fname.c_str(), H5F_ACC_TRUNC, NULL, flist );
|
fd = new H5File( fname.c_str(), H5F_ACC_TRUNC, FileCreatPropList::DEFAULT, flist );
|
||||||
|
|
||||||
//variables
|
//variables
|
||||||
DataSpace dataspace = DataSpace (H5S_SCALAR);
|
DataSpace dataspace = DataSpace (H5S_SCALAR);
|
||||||
@ -418,9 +418,9 @@ public:
|
|||||||
FileAccPropList fapl;
|
FileAccPropList fapl;
|
||||||
fapl.setFcloseDegree(H5F_CLOSE_STRONG);
|
fapl.setFcloseDegree(H5F_CLOSE_STRONG);
|
||||||
if(!owenable)
|
if(!owenable)
|
||||||
fd = new H5File( fname.c_str(), H5F_ACC_EXCL, NULL,fapl );
|
fd = new H5File( fname.c_str(), H5F_ACC_EXCL, FileCreatPropList::DEFAULT,fapl );
|
||||||
else
|
else
|
||||||
fd = new H5File( fname.c_str(), H5F_ACC_TRUNC, NULL, fapl );
|
fd = new H5File( fname.c_str(), H5F_ACC_TRUNC, FileCreatPropList::DEFAULT, fapl );
|
||||||
|
|
||||||
//attributes - version
|
//attributes - version
|
||||||
double dValue=version;
|
double dValue=version;
|
||||||
@ -538,7 +538,7 @@ public:
|
|||||||
hid_t vdsDataspace = H5Screate_simple(3, vdsdims ,NULL);
|
hid_t vdsDataspace = H5Screate_simple(3, vdsdims ,NULL);
|
||||||
if (vdsDataspace < 0)
|
if (vdsDataspace < 0)
|
||||||
return CloseFileOnError(fd, string("Error in creating virtual dataspace in virtual file ") + virtualFileName + string("\n"));
|
return CloseFileOnError(fd, string("Error in creating virtual dataspace in virtual file ") + virtualFileName + string("\n"));
|
||||||
hsize_t vdsdims_para[2] = {numf, numDety * numDetz};
|
hsize_t vdsdims_para[2] = {numf, (unsigned int)numDety * numDetz};
|
||||||
hid_t vdsDataspace_para = H5Screate_simple(2, vdsdims_para, NULL);
|
hid_t vdsDataspace_para = H5Screate_simple(2, vdsdims_para, NULL);
|
||||||
if (vdsDataspace_para < 0)
|
if (vdsDataspace_para < 0)
|
||||||
return CloseFileOnError(fd, string("Error in creating virtual dataspace (parameters) in virtual file ") + virtualFileName + string("\n"));
|
return CloseFileOnError(fd, string("Error in creating virtual dataspace (parameters) in virtual file ") + virtualFileName + string("\n"));
|
||||||
|
@ -112,9 +112,9 @@ int HDF5File::CreateFile(uint64_t fnum) {
|
|||||||
if (dataspace == NULL)
|
if (dataspace == NULL)
|
||||||
cprintf(RED,"Got nothing!\n");
|
cprintf(RED,"Got nothing!\n");
|
||||||
|
|
||||||
if(!silentMode)
|
if(!silentMode) {
|
||||||
FILE_LOG(logINFO) << *udpPortNumber << ": HDF5 File created: " << currentFileName;
|
FILE_LOG(logINFO) << *udpPortNumber << ": HDF5 File created: " << currentFileName;
|
||||||
|
}
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ int HDF5File::WriteToFile(char* buffer, int buffersize, uint64_t fnum, uint32_t
|
|||||||
if (HDF5FileStatic::ExtendDataset(index, dataspace, dataset,
|
if (HDF5FileStatic::ExtendDataset(index, dataspace, dataset,
|
||||||
dataspace_para, dataset_para, *numImages) == OK) {
|
dataspace_para, dataset_para, *numImages) == OK) {
|
||||||
if (!silentMode) {
|
if (!silentMode) {
|
||||||
cprintf(BLUE,"%d Extending HDF5 dataset by %llu, Total x Dimension: %u\n",
|
cprintf(BLUE,"%d Extending HDF5 dataset by %lu, Total x Dimension: %lu\n",
|
||||||
index, extNumImages, extNumImages + *numImages);
|
index, extNumImages, extNumImages + *numImages);
|
||||||
}
|
}
|
||||||
extNumImages += *numImages;
|
extNumImages += *numImages;
|
||||||
@ -191,8 +191,9 @@ int HDF5File::CreateMasterFile(bool en, uint32_t size,
|
|||||||
if (master && (*detIndex==0)) {
|
if (master && (*detIndex==0)) {
|
||||||
virtualfd = 0;
|
virtualfd = 0;
|
||||||
masterFileName = HDF5FileStatic::CreateMasterFileName(filePath, fileNamePrefix, *fileIndex);
|
masterFileName = HDF5FileStatic::CreateMasterFileName(filePath, fileNamePrefix, *fileIndex);
|
||||||
if(!silentMode)
|
if(!silentMode){
|
||||||
FILE_LOG(logINFO) << "Master File: " << masterFileName;
|
FILE_LOG(logINFO) << "Master File: " << masterFileName;
|
||||||
|
}
|
||||||
pthread_mutex_lock(&Mutex);
|
pthread_mutex_lock(&Mutex);
|
||||||
int ret = HDF5FileStatic::CreateMasterDataFile(masterfd, masterFileName, *overWriteEnable,
|
int ret = HDF5FileStatic::CreateMasterDataFile(masterfd, masterFileName, *overWriteEnable,
|
||||||
*dynamicRange, en, size, nx, ny, *numImages, at, st, ap, HDF5_WRITER_VERSION);
|
*dynamicRange, en, size, nx, ny, *numImages, at, st, ap, HDF5_WRITER_VERSION);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user