ISISNeutronMuon / MDANSE

MDANSE: Molecular Dynamics Analysis for Neutron Scattering Experiments
https://www.isis.stfc.ac.uk/Pages/MDANSEproject.aspx
GNU General Public License v3.0
18 stars 4 forks source link

Disable jobs with no atoms selected #463

Closed MBartkowiakSTFC closed 3 weeks ago

MBartkowiakSTFC commented 3 weeks ago

Description of work Fixes the problem of the GUI crashing when starting a job with total_steps=0.

closes #461

Fixes

  1. Added a check in JobHolder before dividing by 'total_steps'.
  2. AtomSelectionConfigurator becomes invalid if the selection is empty.

To test Load a trajectory, pick an analysis and deselect all the atoms. The widget should become invalid, and the "run" button inactive.