Add install pywin32 to READMEs and fix import (Iss...
by Chris Satterlee 5 years 2 months
Add install pywin32 to READMEs and fix import (Issue #149)

- Added pywin32 to pip install list for Windows
- Removed try/except around import of win32com.client and added 'if sys.platform == "win32"'
938c8e30
Fix mistake in Issue #146 fix
by Chris Satterlee 5 years 2 months
Fix mistake in Issue #146 fix

Move the call to turn_off_loop_mode() to before the line that disables the loop_mode_cb.
79775813
Remove wait_visibility() from myTkSimpleDialog (Is...
by Chris Satterlee 5 years 2 months
Remove wait_visibility() from myTkSimpleDialog (Issue #148)

There seems to be no adverse effect of removing this statement, which is occasionally triggering the exception listed in Issue #148.
1930eab3
Improve main window widget placement (Issue #147)
by Chris Satterlee 5 years 2 months
Improve main window widget placement (Issue #147)

- Reduced total_cols from 12 to 10
- Increased pad_cols from 2 to 3
- Moved padding from before axis_ranges_box to after go_button_box
2f603d93
Fix pylint C1614
by Chris Satterlee 5 years 2 months
Fix pylint C1614

No Issue filed. Fix pylint complaint about bad continuation. The python3 version did not have this issue, but the formatting of the analogous lines is changed too in order to minimize the diffs between python and python3.
b2fa2070
Disable loop mode in Results Wizard and on PV mode...
by Chris Satterlee 5 years 2 months
Disable loop mode in Results Wizard and on PV model test (Issue #146)

Add method to turn off loop mode and call that method on entry to Results Wizard and on completion of a PV model test. This prevents loop mode from "inheriting" the axis ranges from an older run or from the PV model test.
660272a9
Fix config file copy dependence on looping
by Chris Satterlee 5 years 2 months
Fix config file copy dependence on looping

Added a derived property "looping" that is true only when looping is actually occurring. It infers this based on the existence of the Stop button.

Use the new looping property in the expression in the save_config() method instead of the loop_mode_active property.
9486b784
Fix pylint R1714
by Chris Satterlee 5 years 2 months
Fix pylint R1714

Forgot to run pylint before commit https://github.com/csatt/IV_Swinger/commit/ff424513799b9d2ee89685f5842595765f468fcc

Fix "consider-using-in" (R1714) warning.
80334197
Disable loop mode controls in Results Wizard (Issu...
by Chris Satterlee 5 years 2 months
Disable loop mode controls in Results Wizard (Issue #144)

Disable all three loop mode checkbuttons in constrain_master() and re-enable them in restore_master().
88a3c047
Corrections to previous commit (Issue #143)
by Chris Satterlee 5 years 2 months
Corrections to previous commit (Issue #143)

- Modify plot_results() method of IV_Swinger2 class to proceed with generation of the plot even if add_reference_curve() generates an assertion, and then return RC_PV_MODEL_FAILURE after that

- Modify the redisplay_img() method to display the image even if plot_results() returns RC_PV_MODEL_FAILURE

- Remove the call to show_pv_model_failure() from the GraphicalUserInterface plot_results() method since it is redundant

- In the swing_loop() method, display the image even if the reference plot generation failed, but also call show_pv_model_failure()
ff424513
Report a bug