Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two options to disable residuals and polydispersity distribution plots #2558

Merged
merged 6 commits into from
Aug 1, 2023

Conversation

lozanodorian
Copy link
Contributor

Description

Two additional options in Display Settings.
The first one allows to disable residuals display, the second one allows to disable polydispersity distribution plot display.

How Has This Been Tested?

(De)activate one option in Preferences > Display Settings and try to plot the residuals / polydispersity distribution plot.

Note

If the user activates the option for the residuals after plotting the residuals (for instance if he/she wants to disable the residuals before a fit), the residuals won't disappear (before or after a second plot). Issue #2526 still remains.

Review Checklist (please remove items if they don't apply):

  • Code has been reviewed
  • Functionality has been tested
  • Windows installer (GH artifact) has been tested (installed and worked)
  • MacOSX installer (GH artifact) has been tested (installed and worked)
  • User documentation is available and complete (if required)
  • Developers documentation is available and complete (if required)
  • The introduced changes comply with SasView license (BSD 3-Clause)

Dorian Lozano added 3 commits July 19, 2023 10:15
@butlerpd butlerpd added the Discuss At The Call Issues to be discussed at the fortnightly call label Jul 25, 2023
@butlerpd
Copy link
Member

@lucas-wilkins to review as it speaks to both plotting and preferences panel

@@ -197,6 +197,14 @@ def __init__(self):
# sets the maximum number of characters per Fitting plot legend entry.
self.FITTING_PLOT_LEGEND_MAX_LINE_LENGTH = 30

# Residuals management
# If true, disables residuals display
self.DISABLE_RESIDUALS = False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make config entries as explicit as reasonably possible,

I suggest DISABLE_RESIDUAL_PLOT at least

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, done.

Dorian Lozano added 3 commits July 26, 2023 10:22
…config.py and 'disableResidualsPlot' the 'disableResiduals' widget in DisplayPreferencesWidget.py
@butlerpd butlerpd merged commit 96f9f42 into main Aug 1, 2023
@krzywon krzywon deleted the disable-residuals branch September 8, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discuss At The Call Issues to be discussed at the fortnightly call
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants