Opened 8 years ago

Closed 8 years ago

#766 closed defect (fixed)

sum & product models hanging sasview

Reported by: richardh Owned by: mathieu
Priority: critical Milestone: SasView 4.1.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing

Description

on creating a new sum or product model, an _user is being appended to the name, this causes a hang. Trace back below.

Andrew thinks that (a) a new model is created on compilation, (b) it gets written to disk, © on being reloaded it conflicts with the one already in memory. [It does cleverly seem to update the models list without having to do "load plugin models", but perhaps that is the weak point?]

If close sasview and start a new session, the newly created model works fine, without any _user appended to the name.


Traceback (most recent call last):

File "C:\stfc\sasview4\sasview\src\sas\sasgui\perspectives\fitting\fitpage.py", line 1269, in _on_select_model

self._set_dipers_Param(event=None)

File "C:\stfc\sasview4\sasview\src\sas\sasgui\perspectives\fitting\basepage.py", line 2263, in _set_dipers_Param

self._reset_dispersity()

File "C:\stfc\sasview4\sasview\src\sas\sasgui\perspectives\fitting\basepage.py", line 2343, in _reset_dispersity

self.save_current_state()

File "C:\stfc\sasview4\sasview\src\sas\sasgui\perspectives\fitting\basepage.py", line 802, in save_current_state

self.state.model = self.model.clone()

File "C:\stfc\sasview4\sasview\src\sas\sascalc\calculator\BaseComponent?.py", line 176, in clone

return self._clone(obj)

File "C:\Users\rkh98\.sasview\plugin_models\rkh_sph_hardsph_v5.py", line 100, in _clone

obj.params = copy.deepcopy(self.params)

AttributeError?: 'NoneType?' object has no attribute 'deepcopy'

Change History (2)

comment:1 Changed 8 years ago by mathieu

In 64f0a1c671d05c84078beba73c75405ee2eccfd7/sasmodels:

Make sure Sum|Multi models are not loaded a second time as _user. Re #766

comment:2 Changed 8 years ago by mathieu

  • Resolution set to fixed
  • Status changed from new to closed

In f80b8a9f791a4f6550750aaa17b79f334e1ba267/sasview:

Make sure the copy module is available regardless of how the model is loaded. Fixes #766

Note: See TracTickets for help on using tickets.