From def84a2ab2d48feac19d5518b04e57138198d2d8 Mon Sep 17 00:00:00 2001 From: Hazen Babcock Date: Fri, 26 Apr 2019 12:35:35 -0400 Subject: [PATCH] Fix mosaic module parameters so that only the 'objective' parameter can be changed. --- storm_control/hal4000/mosaic/mosaic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storm_control/hal4000/mosaic/mosaic.py b/storm_control/hal4000/mosaic/mosaic.py index f8d401b14..d2e6c29a6 100644 --- a/storm_control/hal4000/mosaic/mosaic.py +++ b/storm_control/hal4000/mosaic/mosaic.py @@ -49,10 +49,10 @@ class Mosaic(halModule.HalModule): def __init__(self, module_params = None, qt_settings = None, **kwds): super().__init__(**kwds) - # - # FIXME: Are these parameters mutable? They shouldn't be if they are. - # self.parameters = module_params.get("parameters") + for param in self.parameters.getAttrs(): + if (param != "objective"): + self.parameters.getp(param).setMutable(False) self.view = MosaicBox() self.configure_dict = {"ui_order" : 3,