Project H1GISideChain/H1GIScPart3.ccpn gives an exception on loading.
The problem does not manifest if you open the program with this project. It does manifest if you
1) Open the program with H1GISideChain/H1GIScPart2.ccpn
2) Drag H1GISideChain/H1GIScPart3.ccpn in and drop it into the rightmost display window.
Looks like problem with dock names:
"
Traceback (most recent call last):
File "/home/ccpn/miniconda3/envs/ccpnmr_dist/lib/python3.5/site-packages/pyqtgraph/dockarea/DockArea.py", line 256, in buildFromState
obj = docks[contents]
KeyError: 'SIDECHAIN ASSIGNMENT'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
[...]
File "/home/ccpn/miniconda3/envs/ccpnmr_dist/lib/python3.5/site-packages/pyqtgraph/dockarea/DockArea.py", line 259, in buildFromState
raise Exception('Cannot restore dock state; no dock with name "%s"' % contents)
Exception: Cannot restore dock state; no dock with name "SIDECHAIN ASSIGNMENT"
Diff:
The problem manifests itself in AnalysisAssign.showSidechainAssignmentModule() in the lines:
The underlying cause is that the same Framework object is used in between projects, but some of the state is not being cleaned up although the modules are being closed. It's not just this function, the same thing happens in AnalysisAssign.showBackboneAssignmentModule() and possibly elsewhere.
Override Framework._closeExtraWindows() in AnalysisAssign to remove links to modules when they are being closed.