neutrons / mantid_total_scattering

Implementing total neutron scattering data reduction using the Mantid Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handling empty values in input JSON

marshallmcdonnell opened this issue · comments

Currently, if the input JSON input has a key but the value is empty, non-graceful errors occur.

Example from ADDIE:
Having the entry

"Merging": {"Characterizations": ""}

raises the exception

ValueError on line 1047 of '/path/to/mantid/Framework/PythonInterface/mantid/simpleapi.py': Invalid value for property Characterizations (TableWorkspace) from string "characterizations": Workspace "characterizations" was not found in the Analysis Data Service

TDD should help with finding empty inputs that raise exceptions