-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method resqml2::AbstractGridRepresentation::getParentCellIndexCount fails #352
Comments
Thanks for the report. Finally, I don't expect to release a 2.8.1.0 version with this fix since I cannot afford to maintain too much versions with the community support. I hope this is fine with you. You could think about cherry picking the fix by yourself if needed. |
Hi Philippe, "With a sufficient number of users of an API, it does not matter what you promise in the contract: all observable behaviors of your system will be depended on by somebody." Unfortunately we are somebody. |
I am thinking about adding a configuration field in the EpcExternalPartReference class (aka HdfProxy) to allow FESAPI users to set a limit when they want to write either in XML or in HDF5. For now, there is indeed "some internal FESAPI logic" as this limit has been arbitrarily chosen and hard coded. More work (it is not only a bug fix now) but probably a valuable one. |
A configurable limit would be ideal, thanks. |
I just fixed this bug for RESQML2.0.1 in next version. Now getParentCellIndexCount can read all kinds of RESQML arrays (including HDF5 or XML constant ones). And
export constant/XML array of a single element.
export constant/XML array of a single or multiple elements
export HDF5 array of a single or multiple elements (even if the arrays always contain the same constant value) |
What are the steps to reproduce this issue?
Read a dataset which contains an UnstructuredGridRepresentation item with a single value Cell Parent Window attribute.
What does happen?
The method throws an exception with message "This list of cells can only be stored in HDF5 file."
What were you expecting to happen?
The method should return 1.
Any logs, error output, etc?
Any other comments?
This error occurs because a single value cell parent window, set via the setParentWindow method, is not creating an HDF dataset, but storing it as an integer constant array of size 1.
Without knowing how many elements there are, which is the information returned by getParentCellIndexCount(), it is not possible to allocate memory for the output array to pass to getParentCellIndices.
Ideally, we want this value stored in HDF.
What versions of fesapi are you using?
2.8.0
The text was updated successfully, but these errors were encountered: