HDF5DataFile: spot information is written as images are coming
This commit is contained in:
@@ -74,7 +74,7 @@ std::vector<hsize_t> HDF5DataSpace::GetDimensions() const {
|
||||
|
||||
void HDF5DataSpace::SelectHyperslab(const std::vector<hsize_t> &start, const std::vector<hsize_t> &size) {
|
||||
if ((start.size() != ndims) || (size.size() != ndims))
|
||||
throw JFJochException(JFJochExceptionCategory::HDF5, "Arrays are inconsistent with dataspace dimension number");
|
||||
throw JFJochException(JFJochExceptionCategory::HDF5, "Arrays are inconsistent with dataspace dimension number " + std::to_string(ndims));
|
||||
|
||||
if (H5Sselect_hyperslab(id, H5S_SELECT_SET, start.data(), NULL, size.data(), NULL) < 0)
|
||||
throw JFJochException(JFJochExceptionCategory::HDF5, "Cannot select hyperslab");
|
||||
|
||||
Reference in New Issue
Block a user