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
19 stars 4 forks source link

Atom transmutation update #419

Closed ChiCheng45 closed 2 months ago

ChiCheng45 commented 2 months ago

Description of work Fixed MDANSE so that atom transmutations works again. The setting has been changed so that a json string is used to map atom indexes to atom types e.g. {"0": "Be"}.

A helper dialog is created to help generate the transmutation settings. First the user uses the selection part to select atoms to transmute. Then the transmutation combo box is set to the atom to transmute the selection to and then the transmute button is clicked. The user can do this a few times until they are happy with the transmutation. The use setting button is used to use the setting which updates the setting box in the main window.

Animation16

Fixes Closes #401

To test All unit tests should pass. Use the transmutation and run an analysis job. Open the results and check that results are outputted with the atom types that you transmuted to.