cgq-qgc / pyhelp

A Python library for the assessment of spatially distributed groundwater recharge and hydrological components with HELP
MIT License
17 stars 5 forks source link

Bug lors de la sauvegarde des outputs #72

Closed FHuchet closed 2 years ago

FHuchet commented 2 years ago
HELP simulation in progress: 100.0% (0.0 min remaining)      
Task completed in 145.64 sec
Post-processing cell 22202 of 22202... done
Saving data to help_example.out...
Traceback (most recent call last):

  Input In [54] in <cell line: 1>
    output = helpm.calc_help_cells(help_output_hdf5, tfsoil=-3)

  File ~\.conda\envs\PyHELP\lib\site-packages\pyhelp\managers.py:316 in calc_help_cells
    help_output.save_to_hdf5(path_to_hdf5)

  File ~\.conda\envs\PyHELP\lib\site-packages\pyhelp\output.py:102 in save_to_hdf5
    group.attrs['index'] = list(self.grid.index)

  File h5py\_objects.pyx:54 in h5py._objects.with_phil.wrapper

  File h5py\_objects.pyx:55 in h5py._objects.with_phil.wrapper

  File ~\.conda\envs\PyHELP\lib\site-packages\h5py\_hl\attrs.py:103 in __setitem__
    self.create(name, data=value)

  File ~\.conda\envs\PyHELP\lib\site-packages\h5py\_hl\attrs.py:196 in create
    attr = h5a.create(self._id, self._e(tempname), htype, space)

  File h5py\_objects.pyx:54 in h5py._objects.with_phil.wrapper

  File h5py\_objects.pyx:55 in h5py._objects.with_phil.wrapper

  File h5py\h5a.pyx:50 in h5py.h5a.create

RuntimeError: Unable to create attribute (object header message is too large)
jnsebgosselin commented 2 years ago

See https://github.com/h5py/h5py/issues/1053#issuecomment-525363860