[Task] Solve the issue with unit changing in Rietveld tab
-
Load in some sample data (as attached here, NOM161121tof.gsa, NOM161122tof.gsa, NOM161123tof.gsa) in
Rietveldtab and select nothing inBragg Workspacestree and click on any of the item in the unit change dropdown menu will crash ADDIE.-
According to the error message, we need to go to the
switch_bragg_unitfunction definition inaddie/rietveld/event_handler.pyand search for the line containingAt least 1 GSS file must be selected.. We want to replace such an assertion operation with the following codes to throw out warning message instead of crashing ADDIE in such a situation,if len(ws_group_list) == 0: print("[Warning] At least 1 GSS file must be selected.") return
-
-
Load in some sample data (as attached here, NOM161121tof.gsa, NOM161122tof.gsa, NOM161123tof.gsa) in
Rietveldtab and selectworkspacesinBragg Workspacestree and click on any of the item in the unit change dropdown menu will crash ADDIE.- According to the error message, we need to go to the
switch_bragg_unitfunction definition inaddie/rietveld/event_handler.pyand search for the line containingif 'workspaces' in ws_group_list. We see thatworkspacesis intended to be removed from workspaces list but we have a typo here -workspaceneeds to be changed toworkspaces.
- According to the error message, we need to go to the