-
Notifications
You must be signed in to change notification settings - Fork 4
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
sciunit repeat
Error: FileNotFoundError in xarray
to zarr
Conversion
#42
Comments
I reproduced the problem on this python file import xarray as xr
import numpy as np
import pandas as pd
def create_sample_dataset():
# Create some example data
data = np.random.rand(4, 3)
time = pd.date_range('2024-01-01', periods=4)
lat = [10, 20, 30]
# Create an xarray Dataset
dataset = xr.Dataset(
{
"temperature": (["time", "lat"], data)
},
coords={
"time": time,
"lat": lat
}
)
return dataset
def write_to_zarr(dataset, outputfile):
# Write the dataset to a Zarr file
write_job = dataset.to_zarr(
outputfile, mode='w', compute=False, consolidated=True
)
return write_job
if __name__ == "__main__":
# Define the output file
outputfile = 'sample_dataset.zarr'
# Create a sample dataset
dataset = create_sample_dataset()
# Write the dataset to a Zarr file
write_to_zarr(dataset, outputfile)
print(f"Dataset successfully written to {outputfile}") |
https://github.com/depaul-dice/provenance-to-use It's the PTE that can't delete folders |
I reproduced the issue on this python file import shutil
import os
file_path = './test'
try:
shutil.rmtree(file_path)
print(f"The directory {file_path} and all its contents have been removed successfully.")
except Exception as e:
print(f"An error occurred while removing the directory: {e}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I encountered an issue when running
sciunit repeat
. The process fails with aFileNotFoundError
during the conversion fromxarray
tozarr
. Here are the details of the error message:Here are some additional details that might be helpful:
I found the same issue when I didn't use Docker.
Command Used:
sciunit repeat
Docker Setup: Readme
Operating System: Ubuntu 20.04
Python Version: Python 3.10
Conda Environment: ecopro
The text was updated successfully, but these errors were encountered: