sample is required in `icat-store-raw`
I have tried to run icat-store-raw
with the required parameters but will fail because sample is not defined.
icat-store-raw --beamline id00 --proposal id000000 --dataset pyicatplus_test1 --path /tmp/nothing --queue bcu-mq-04:61613
Error trace is:
Traceback (most recent call last):
File "/users/demariaa/miniconda3/bin/icat-store-raw", line 33, in <module>
sys.exit(load_entry_point('pyicat-plus==0.1.0rc0', 'console_scripts', 'icat-store-raw')())
File "/users/demariaa/miniconda3/lib/python3.7/site-packages/pyicat_plus-0.1.0rc0-py3.7.egg/pyicat_plus/apps/store_raw.py", line 24, in main
metadata=args.metadata,
File "/users/demariaa/miniconda3/lib/python3.7/site-packages/pyicat_plus-0.1.0rc0-py3.7.egg/pyicat_plus/client/main.py", line 263, in store_dataset
metadata=metadata,
File "/users/demariaa/miniconda3/lib/python3.7/site-packages/pyicat_plus-0.1.0rc0-py3.7.egg/pyicat_plus/client/metadata.py", line 36, in send_metadata
metadata=metadata,
File "/users/demariaa/miniconda3/lib/python3.7/site-packages/pyicat_plus-0.1.0rc0-py3.7.egg/pyicat_plus/client/xmlns.py", line 47, in dataset_as_xml
assert "Sample_name" in metadata, "ICAT metadata field 'Sample_name' is missing"
AssertionError: ICAT metadata field 'Sample_name' is missing