Skip to content

Conversation

@abigailalexander
Copy link
Contributor

This pr adds in instrument dictionary functionality. It looks for an instrument-prefs.yml file inside a specified instrument-config directory (this probably isn't the best way of doing this, so subject to change). If no file is provided, it loads a default instrument prefs file from that directory to create the instrument setup entrypoint. This is then used to populate the techniques dropdown. Also prevents users from sending payload to scicat if no instrument is specified other than the default one.

@abigailalexander abigailalexander changed the title Scicat instrument prefs Scicat instrument preferences May 25, 2022
@lgtm-com
Copy link

lgtm-com bot commented May 25, 2022

This pull request introduces 1 alert when merging 207a844 into fb26615 - view on LGTM.com

new alerts:

  • 1 for Variable defined multiple times

@lgtm-com
Copy link

lgtm-com bot commented May 26, 2022

This pull request introduces 1 alert when merging 4360a5e into fb26615 - view on LGTM.com

new alerts:

  • 1 for Variable defined multiple times

@abigailalexander
Copy link
Contributor Author

Looks like the tests were failing before because the ci couldn't locate thetest-instrument-prefs.ymlfile, and this was causing an error when trying to create the entrypoint. I added an extra case for if the test file can't be found to just create the preferences from a given dict and this seems to fix it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants