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
23 stars 5 forks source link

[ENHANCEMENT] Update default value behaviour of the instruments settings #582

Closed ChiCheng45 closed 1 month ago

ChiCheng45 commented 1 month ago

Is your feature request related to a problem? Please describe. Some of the instrument setting options appear to have default values. Here I set the resolution_fwhm, q_min, and q_max to an empty cell image this produces an instrument that uses some default values for resolution_fwhm, q_min, and q_max. Using this instrument for a job works fine.

When I set an empty cell for q_step, q_width, or vectors_per_shell the instrument setting fails to be created. You can still select this instrument but nothing changes in the q_vectors setting. image

Describe the solution you'd like When the cell is empty then it should use some default values and show what they are similar to other input cells e.g. last frame in the frames configurator. image