Opened 5 years ago

Closed 5 years ago

#395 closed defect (fixed)

Save Project Only Saving 1st Fit Page Data and Fit

Reported by: krzywon Owned by: krzywon
Priority: critical Milestone: SasView 3.1.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing


Save project is only saving the 1st fit page regardless of the number of fits open. Changing the focus to another tab does not change the behavior.

Also, an error is thrown on loading projects and analysis files regarding fit engines:
ERROR Error: This model state has missing or outdated information.
Plugin instance has no attribute '_on_change_engine'

I'm adding this as a bug to fix for 3.1.

Change History (2)

comment:1 Changed 5 years ago by krzywon

  • Priority changed from major to critical

comment:2 Changed 5 years ago by krzywon

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

I found and fixed the issue regarding the saving and loading of projects.

Loading: The error on loading was from trying to use fitting engines that no longer exist in the project. I removed the part where any type of fit engine is selected so all saved projects default to bumps.

Saving: The saving of cansas files was bugged due to a change I had made since last release. I sectioned out the save method into smaller methods to compartmentalize the writing. In doing so, I moved a caller class check from the main method to a sub-method, so the calling class was always the cansas reader. The caller is important because the cansas reader uses lxml for writing and the perspectives uses minidom, so converting from one to the other is necessary to correctly write a file.

Note: See TracTickets for help on using tickets.