You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some cases where the config file gets corrupted. They occur when the Results Wizard is used to view a run and then the Wizard is closed with that run still displayed.
Case 1:
- Open Wizard and select old run
- Click "Done" to exit Wizard
- Check (or uncheck) "Lock"
Result: config file of old run is corrupted
Case 2:
- Open Wizard and select old run
- Click "Done" to exit Wizard
- Check "Plot Power"
Result: current config file is corrupted
Depending on the config file of the old run, there are also cases where the config is not corrupted per se but is reordered such that a "diff" shows differences. That should be fixed too.
The text was updated successfully, but these errors were encountered:
The change to the Configuration class get() method in IV_Swinger2.py fixes the reordering problem. Instead of merging the file contents with current config, it blows away the old config and creates a new one.
There are several changes to IV_Swinger2_gui.py to fix the other issues. The main change is to not apply config changes to the old result that is still displayed after the Results Wizard is exited. For example, if the Plot Power checkbutton is checked immediately after exiting the Wizard, the plot that was being viewed is not updated to plot its power. This makes sense; if the user wants to add the power plot to an old run, that should be done while still in the Wizard. Checking plot power after the Wizard is exited changes the current config, not the config of the old run. There are other changes that were needed to fix the failing cases listed in Issue #109. The swap_config() and restore_config() methods were added to reduce code duplication in the GraphicalUserInterface.apply_new_ranges() and the
PlotPower.update_plot_power() methods.
There are some cases where the config file gets corrupted. They occur when the Results Wizard is used to view a run and then the Wizard is closed with that run still displayed.
Case 1:
- Open Wizard and select old run
- Click "Done" to exit Wizard
- Check (or uncheck) "Lock"
Result: config file of old run is corrupted
Case 2:
- Open Wizard and select old run
- Click "Done" to exit Wizard
- Check "Plot Power"
Result: current config file is corrupted
Depending on the config file of the old run, there are also cases where the config is not corrupted per se but is reordered such that a "diff" shows differences. That should be fixed too.
The text was updated successfully, but these errors were encountered: