Skip to content

Warn user before starting scattering calcs on large structures#3737

Merged
wpotrzebowski merged 8 commits intomainfrom
2915
Nov 12, 2025
Merged

Warn user before starting scattering calcs on large structures#3737
wpotrzebowski merged 8 commits intomainfrom
2915

Conversation

@klytje
Copy link
Copy Markdown
Contributor

@klytje klytje commented Nov 11, 2025

Description

The user will now receive a popup if a GSC calculation is requested with large input structures. This will continue to appear on every such request until the user accepts it, after which it will no longer be shown.

Fixes #2915

How Has This Been Tested?

Manually verified functionality by running with various different input structures, ranging from 50k to 500k atoms.

Documentation (check at least one)

  • 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 (untick if necessary)

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

Copy link
Copy Markdown
Member

@rozyczko rozyczko left a comment

Choose a reason for hiding this comment

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

Looks good. It's important to tell users their requests are sometimes too tall :)

Minor code comments only.

Comment thread src/sas/qtgui/Calculators/GenericScatteringCalculator.py
Comment thread src/sas/qtgui/Calculators/GenericScatteringCalculator.py Outdated
Copy link
Copy Markdown
Contributor

@wpotrzebowski wpotrzebowski left a comment

Choose a reason for hiding this comment

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

Generally looks good to me. Some minor suggestion.

Comment thread src/sas/qtgui/Calculators/GenericScatteringCalculator.py
Comment thread src/sas/qtgui/Calculators/GenericScatteringCalculator.py Outdated
Comment thread src/sas/qtgui/Calculators/GenericScatteringCalculator.py
Copy link
Copy Markdown
Contributor

@wpotrzebowski wpotrzebowski left a comment

Choose a reason for hiding this comment

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

Tested on the large protein capsid on MacOSX. Works as expected.

@wpotrzebowski wpotrzebowski merged commit 7ccccf0 into main Nov 12, 2025
30 checks passed
@wpotrzebowski wpotrzebowski deleted the 2915 branch November 12, 2025 20: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.

Need a way out of the GSC

3 participants