chrisroadmap / ar6

Figure and data generation for Chapter 7 of the IPCC's Sixth Assessment Report, Working Group 1 (plus assorted other contributions)
MIT License
34 stars 27 forks source link

/Chapter-7/notebooks/230_chapter7_fig7.8 #### unable to open file: name = '../data_output_large/twolayer_AR6-historical.h5' #49

Open ghost opened 1 year ago

ghost commented 1 year ago

Hello, I tried to execute the notebook /Chapter-7/notebooks/230_chapter7_fig7.8 But there is an strange error when I execute the 3rd paragraph:


FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_4612/3212073803.py in ----> 1 results = load_dict_from_hdf5('../data_output_large/twolayer_AR6-historical.h5')

~/Logiciels_/Chapter-7/src/ar6/utils/h5.py in load_dict_from_hdf5(filename) 31 .... 32 """ ---> 33 with h5py.File(filename, 'r') as h5file: 34 return recursively_load_dict_contents_from_group(h5file, '/') 35

~/Logiciels_/anaconda3/envs/ar6-wg1-ch7/lib/python3.7/site-packages/h5py/_hl/files.py in init(self, name, mode, driver, libver, userblock_size, swmr, rdcc_nslots, rdcc_nbytes, rdcc_w0, track_order, fs_strategy, fs_persist, fs_threshold, fs_page_size, page_buf_size, min_meta_keep, min_raw_keep, locking, alignment_threshold, alignment_interval, meta_block_size, **kwds) 565 fs_persist=fs_persist, fs_threshold=fs_threshold, 566 fs_page_size=fs_page_size) --> 567 fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr) 568 569 if isinstance(libver, tuple):

~/Logiciels_/anaconda3/envs/ar6-wg1-ch7/lib/python3.7/site-packages/h5py/_hl/files.py in make_fid(name, mode, userblock_size, fapl, fcpl, swmr) 229 if swmr and swmr_support: 230 flags |= h5f.ACC_SWMR_READ --> 231 fid = h5f.open(name, flags, fapl=fapl) 232 elif mode == 'r+': 233 fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/h5f.pyx in h5py.h5f.open()

FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = '../data_output_large/twolayer_AR6-historical.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

What can I do to resolve it? Sorry if it's a beginner's mistake, I'm a student, I discover anaconda only 2 days before, and I haven’t figured it out yet. (dependencies, virtual environment..)