HDF5DataFile: spot information is written as images are coming
This commit is contained in:
1 parent
f372c0e697
commit
0febe9856f
4 files changed
+70
-16
No files matched your search
@@ -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