-
Notifications
You must be signed in to change notification settings - Fork 19
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
New write mode to append to existing netCDF file #213
New write mode to append to existing netCDF file #213
Conversation
Actions jobs will currently fail as I am investigating a few issues that have arisen on this side of play... |
3247ab3
to
bf7a28e
Compare
(Force-pushed the branch to resolve minor conflicts.) |
I am seeing a (very unhelpful) generic HDF error when the test hits the "NETCDF4" format, which I haven't seen before in the equivalent cdfm test:
Investigating... |
Opening and closing to trigger the Actions jobs to see see whether the test suite passes at this point... |
The Actions jobs are failing currently due to using the current |
RE #213 (comment), on Friday I managed to extract a more specific HDF error message, as follows: HDF5-DIAG: Error detected in HDF5 (1.10.4) thread 139673628755776:
#000: H5F.c line 509 in H5Fopen(): unable to open file
major: File accessibilty
minor: Unable to open file
#001: H5Fint.c line 1400 in H5F__open(): unable to open file
major: File accessibilty
minor: Unable to open file
#002: H5Fint.c line 1583 in H5F_open(): file is already open for read-only
major: File accessibilty
minor: Unable to open file which pointed to opening files that were already open in some mode as the issue at hand. After discussions today we found a probably solution and realised the issue applied only to cf-python (i.e. not cfdm) because of its different file handler management approach hence why we were seeing this only via the tests here and not in the tests on NCAS-CMS/cfdm#69. Fix to be committed shortly... |
51276ab
to
9bba788
Compare
Looks there are a few linting issues to resolve, and I should bump the release date, I'll do that in the next commit, but it would be good to let a test suite job run to completion to see if there are any issues raised. I may have seen one (outside of the |
In fact that was just due to |
I have added a few pre-release commits though they are not related to the append mode crux of this PR, because I want to use the Actions jobs as checks of the codebase for the imminent release. Restarting the jobs with an open-close... |
The |
Some of the test suite run jobs appear to have hung and there is not much I can do about that (bar re-start the jobs but we might hit the same issue and waste much limited Actions time resource), so going to merge. The test suite passes locally and has passed for a Mac OS and an Ubuntu job, so I think that is good enough. |
Fixes #30 by enabling the new append mode feature for writing to netCDF as implemented in NCAS-CMS/cfdm#69 to be used here in cf-python.