8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I didn't manage to create an example to reproduce the bug in few lines, but the complete is example is available on GitHub : https://github.com/MET-OM/metocean-api and https://github.com/MET-OM/metocean-api/actions/runs/15142723801.
When having the test processing, they randomly pass and randomly fail at the closing of dataset open in a with statement.
import xarray as xr from dask.diagnostics import ProgressBar tempfiles = [...] # list of NetCDF4 files with xr.open_mfdataset(tempfiles, parallel=True, engine="netcdf4") as ds, ProgressBar(): ds.load() if save_nc: # Save the unaltered structure ds = ds.sel({"time": slice(ts.start_time, ts.end_time)}) save_to_netcdf(ds, ts.datafile.replace(".csv", ".nc")) df = self.create_dataframe( ds=ds, lon_near=lon_near, lat_near=lat_near, outfile=ts.datafile, start_time=ts.start_time, end_time=ts.end_time, save_csv=save_csv, **flatten_dims, ) def save_to_netcdf(ds, outfile): remove_if_datafile_exists(outfile) ds.to_netcdf(outfile) print(f"NetCDF file created at {outfile}")
Here are the logs when running the same test command 'pytest -v --full-trace >>log4.txt'.
log4.txt
I absolutly don't know what is happening and it's maybe not really a bug but a not complete understanding of what is happening.
Environment:
Thank you very much for your help
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I didn't manage to create an example to reproduce the bug in few lines, but the complete is example is available on GitHub : https://github.com/MET-OM/metocean-api and https://github.com/MET-OM/metocean-api/actions/runs/15142723801.
When having the test processing, they randomly pass and randomly fail at the closing of dataset open in a with statement.
Here are the logs when running the same test command 'pytest -v --full-trace >>log4.txt'.
log4.txt
I absolutly don't know what is happening and it's maybe not really a bug but a not complete understanding of what is happening.
Environment:
Thank you very much for your help
The text was updated successfully, but these errors were encountered: