Exception on saving #125

Closed
opened 2023-09-28 12:45:47 +00:00 by markusro · 0 comments
Owner

Can not save files.
I did only fit and try to save all things:

  1. File -> Save -> Save
  2. Select Filetype "nmr"
  3. Filename diffusion2
  4. Check all boxes (strip space, agr, fit params)
  5. Click save

Results in exception:
`
28/09/2023 14:40:14 - ERROR - root : Uncaught exception:
Traceback (most recent call last):
File "/tmp/.mount_NMRevaISeH3D/usr/src/gui_qt/main/mainwindow.py", line 1105, in _autosave
NMRWriter(self.management.graphs, self.management.data).export(self.__backup_path)
File "/tmp/.mount_NMRevaISeH3D/usr/src/nmreval/io/sessionwriter.py", line 18, in init
s_state = data[s].get_state()
File "/tmp/.mount_NMRevaISeH3D/usr/src/gui_qt/data/container.py", line 237, in get_state
'data': self._data.get_state(),
File "/tmp/.mount_NMRevaISeH3D/usr/src/nmreval/fit/result.py", line 359, in get_state
state['params'] = {k: v.get_state() for k, v in self.parameter.items()}
File "/tmp/.mount_NMRevaISeH3D/usr/src/nmreval/fit/result.py", line 359, in
state['params'] = {k: v.get_state() for k, v in self.parameter.items()}
File "/tmp/.mount_NMRevaISeH3D/usr/src/nmreval/fit/parameter.py", line 310, in get_state
return {slot: getattr(self, slot) for slot in self.slots}
AttributeError: 'Parameter' object has no attribute 'slots'

`

Can not save files. I did only fit and try to save all things: 1. File -> Save -> Save 2. Select Filetype "nmr" 3. Filename diffusion2 4. Check all boxes (strip space, agr, fit params) 5. Click save Results in exception: ` 28/09/2023 14:40:14 - ERROR - root : Uncaught exception: Traceback (most recent call last): File "/tmp/.mount_NMRevaISeH3D/usr/src/gui_qt/main/mainwindow.py", line 1105, in _autosave NMRWriter(self.management.graphs, self.management.data).export(self.__backup_path) File "/tmp/.mount_NMRevaISeH3D/usr/src/nmreval/io/sessionwriter.py", line 18, in __init__ s_state = data[s].get_state() File "/tmp/.mount_NMRevaISeH3D/usr/src/gui_qt/data/container.py", line 237, in get_state 'data': self._data.get_state(), File "/tmp/.mount_NMRevaISeH3D/usr/src/nmreval/fit/result.py", line 359, in get_state state['params'] = {k: v.get_state() for k, v in self.parameter.items()} File "/tmp/.mount_NMRevaISeH3D/usr/src/nmreval/fit/result.py", line 359, in <dictcomp> state['params'] = {k: v.get_state() for k, v in self.parameter.items()} File "/tmp/.mount_NMRevaISeH3D/usr/src/nmreval/fit/parameter.py", line 310, in get_state return {slot: getattr(self, slot) for slot in self.__slots__} AttributeError: 'Parameter' object has no attribute '__slots__' `
dominik added the
Kind/Bug
label 2023-09-28 12:50:09 +00:00
dominik self-assigned this 2023-09-28 12:50:15 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: IPKM/nmreval#125
No description provided.