lucaskorol21 / GO-RXR

BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Saving simulation gives error #44

Open JohannesBuchner opened 2 months ago

JohannesBuchner commented 2 months ago
Traceback (most recent call last):
  File "/mnt/data/daten/PostDoc2/home/Downloads/GO-RXR/GUI_GO.py", line 9002, in _saveSimulation
    ds.saveSimulationHDF5(self.fname, sim_dict, self.version)
  File "/mnt/data/daten/PostDoc2/home/Downloads/GO-RXR/UTILS/data_structure.py", line 492, in saveSimulationHDF5
    simulated = f['Simulated_data']
                ~^^^^^^^^^^^^^^^^^^
  File "h5py/_debian_h5py_serial/_objects.pyx", line 54, in h5py._debian_h5py_serial._objects.with_phil.wrapper
  File "h5py/_debian_h5py_serial/_objects.pyx", line 55, in h5py._debian_h5py_serial._objects.with_phil.wrapper
  File "/usr/lib/python3/dist-packages/h5py/_debian_h5py_serial/_hl/group.py", line 357, in __getitem__
    oid = h5o.open(self.id, self._e(name), lapl=self._lapl)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "h5py/_debian_h5py_serial/_objects.pyx", line 54, in h5py._debian_h5py_serial._objects.with_phil.wrapper
  File "h5py/_debian_h5py_serial/_objects.pyx", line 55, in h5py._debian_h5py_serial._objects.with_phil.wrapper
  File "h5py/_debian_h5py_serial/h5o.pyx", line 189, in h5py._debian_h5py_serial.h5o.open
KeyError: "Unable to open object (object 'Simulated_data' doesn't exist)"
jpcurbelo commented 2 months ago

Hi! I wasn't able to reproduce exactly this issue, although, got KeyError: "Unable to synchronously open object (object 'Simulated_data' doesn't exist)" when saving the simulation. However, a demo.h5 file is saved in the root dir as expected. We are working on fixing this and improving the saving process. In the meantime, could you, please, let us know if any file was saved when you tried? Thanks.

jpcurbelo commented 1 week ago

We have implemented some updates to the load/save menus:

1- Got rid of the Load/Save Orbitals entries. Commented the functions _loadOrbitals and _saveOrbitals and added this comment: "This should be implemented/updated on Jordan's update - summer 2024". 2- Save Simulation/Sample/Summary are disable when the GUI is loaded. Save Simulation is also enabled after Import Dataset or Load ReMagX.