Combine get_pt_N_uncal_value methods (Issue #156)
by Chris Satterlee 5 years 2 months
Combine get_pt_N_uncal_value methods (Issue #156)

Combine the get_pt_1_uncal_value() and get_pt_2_uncal_value() methods into a single method, get_pt_uncal_value(). Have to call this with a lambda in the ttk.Button "command" option in order to pass the "point" arg.
d527327c
Prevent /0 error in estimate_temp_from_irrad() (Is...
by Chris Satterlee 5 years 2 months
Prevent /0 error in estimate_temp_from_irrad() (Issue #155)

Use 0.001 for irradiance if measured irradiance is zero.
0ab394d9
Remove hardcoded geometry values for simulator hel...
by Chris Satterlee 5 years 2 months
Remove hardcoded geometry values for simulator help dialog

No Issue filed. The simulator help dialog had a fixed min_height of 360 and max_height of 2000. This is changed so the min_height is half of the parent window's height and the max is the full screen height.

For consistency, the default max_height in the GUI set_dialog_geometry() method is changed from winfo_height to winfo_screenheight.

Also fixed a whitespace flake8 issue in IV_Swinger2_gui.py.
837903ec
Remove unreachable code from IV_Swinger2_sim.py
by Chris Satterlee 5 years 2 months
Remove unreachable code from IV_Swinger2_sim.py

No Issue filed for this. The choose_optimal_rf_rg() method had tests for rf_ohms and rg_ohms equal to ZERO_OHMS. Due to continue statements before this point, neither of these conditions could be satisfied, so these lines are not necessary. (Found running code coverage)
e48e7011
Add done callback for SimulatorHelpDialog (Issue #...
by Chris Satterlee 5 years 2 months
Add done callback for SimulatorHelpDialog (Issue #154)

The problem described in Issue #154 is fixed (or at least worked around) by registering a callback method that is invoked when the help window is closed. This method restores the focus to the master window and destroys the help dialog.
497b882d
Save max x and max y values in PV model config (Is...
by Chris Satterlee 5 years 2 months
Save max x and max y values in PV model config (Issue #153)

Modify save_config_for_pv_test() method to save the plot_max_x and plot_max_y values in the config.
57591de5
Set matplotlib font type to TrueType (Issue #152)
by Chris Satterlee 5 years 2 months
Set matplotlib font type to TrueType (Issue #152)

Per: http://phyletica.org/matplotlib-fonts/

Added:
matplotlib.rcParams['pdf.fonttype'] = 42 # TrueType
30fbb1f3
Move call to adjust_margins() after call to set_y_...
by Chris Satterlee 5 years 2 months
Move call to adjust_margins() after call to set_y_range() (Issue #151)

This bug was "caught" by Python 3. See Issue #151.
0ff75988
Add more space for overlay widget box (Issue #150)
by Chris Satterlee 5 years 2 months
Add more space for overlay widget box (Issue #150)

Change number of pixels added to the minimum height of the Results Wizard in overlay mode from 230 to 260.
c208fac9
Added excute permission for myTkSimpleDialog.py
by Chris Satterlee 5 years 2 months
Added excute permission for myTkSimpleDialog.py

For consistency with other .py files, myTkSimpleDialog.py now has permission 755 (-rwxr-xr-x). It was previously 644. I don't think this affects Windows.
cc10237d
Report a bug