When using a generic instrument (MaHPS @ Wendelstein) we get the error:
"Key GENERIC_INSTRUMENT must be defined when using Generic Instrument"
It seems that the generic.generic_validate method is called before reading parameters from our wrapfile; ie. None from parameters.py is used when validating the GENERIC_ parameters, resulting in an error.
Our current workaround is to set GENERIC_INSTRUMENT (and other GENERIC_ parameters) to anything but None in parameters.py. These parameters are later overwritten in select.py (select.load_instrument) with our user-defined inputs from our wrap file.
Adding our wrap file (lbl_test1.py.txt) for you to recreate the error (as .txt because github doesn't allow .py attachments(?!).
When using a generic instrument (MaHPS @ Wendelstein) we get the error:
"Key GENERIC_INSTRUMENT must be defined when using Generic Instrument"
It seems that the generic.generic_validate method is called before reading parameters from our wrapfile; ie. None from parameters.py is used when validating the GENERIC_ parameters, resulting in an error.
Our current workaround is to set GENERIC_INSTRUMENT (and other GENERIC_ parameters) to anything but None in parameters.py. These parameters are later overwritten in select.py (select.load_instrument) with our user-defined inputs from our wrap file.
Adding our wrap file (lbl_test1.py.txt) for you to recreate the error (as .txt because github doesn't allow .py attachments(?!).