Skip to content

Error: Key GENERIC_INSTRUMENT must be defined when using Generic Instrument ; generic.generic_validate called before reading parameters from wrapfile #63

@LouiseDyregaard

Description

@LouiseDyregaard

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(?!).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions