aics-int / microscope_automation

Automation software for the AICS Microscopes.
Other
4 stars 0 forks source link

BUG: Handle missing keys in preferences file for macros #38

Closed wiegraebe closed 3 years ago

wiegraebe commented 3 years ago

Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.

Description

Handle missing preferences in microscope_automation.run_macro

Expected Behavior

If preferences keys are missing or have wrong values, allow user to fix

Reproduction

Run software with missing keyword 'MacroParams' in preferences file

       macro_name = imaging_settings.get_pref("MacroName")
        param_list = imaging_settings.get_pref("MacroParams")
fletchapin commented 3 years ago

This seems closely related to #29