Skip to content

Fix for Invariant Graphs#3869

Merged
jellybean2004 merged 1 commit into
mainfrom
inv_graph_bugfix
Feb 16, 2026
Merged

Fix for Invariant Graphs#3869
jellybean2004 merged 1 commit into
mainfrom
inv_graph_bugfix

Conversation

@jellybean2004
Copy link
Copy Markdown
Member

Description

This PR fixes the bug where new plots are being created for every calculation run. Plots will now only be created if an extrapolation is added or removed. Achieved using a flag extrapolation_made.

I also found that removing all extrapolation led to the deletion of all plots. I have addressed this by calling the initial plotting function to create a simple 1D data plot if extrapolation is removed.

Fixes #3865

How Has This Been Tested?

Manually tested functionality in software build.

Review Checklist:

Documentation

  • There is nothing that needs documenting
  • Documentation changes are in this PR
  • There is an issue open for the documentation (link?)

Installers

  • There is a chance this will affect the installers, if so
    • Windows installer (GH artifact) has been tested (installed and worked)
    • MacOSX installer (GH artifact) has been tested (installed and worked)
    • Wheels installer (GH artifact) has been tested (installed and worked)

Licensing

  • The introduced changes comply with SasView license (BSD 3-Clause)

Copy link
Copy Markdown
Contributor

@DrPaulSharp DrPaulSharp left a comment

Choose a reason for hiding this comment

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

All looks good.

@jellybean2004 jellybean2004 merged commit 7f46806 into main Feb 16, 2026
48 checks passed
@jellybean2004 jellybean2004 deleted the inv_graph_bugfix branch February 16, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Graphs are regenerated in the invariant perspective

2 participants