Commit c1edeb9d authored by Gino Tosti's avatar Gino Tosti
Browse files

code cleaning

parent e056e271
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -68,7 +68,7 @@ class ${Assembly}Base(TCL.HardwareDevice.HardwareDevice):
            if isinstance(telescopeName, list) == True:
            if isinstance(telescopeName, list) == True:
                if len(telescopeName) != 0:
                if len(telescopeName) != 0:
                    for idx in range(0, len(telescopeName)):
                    for idx in range(0, len(telescopeName)):
                        self._devices["SCADA/" + telescopeName[idx] + "/"+"${Assembly}"] = ""
                        self._devices["CONTROL/" + telescopeName[idx] + "/"+"${Assembly}"] = ""
            ## Component names
            ## Component names
            if isinstance(componentName, list) == True:
            if isinstance(componentName, list) == True:
                if len(componentName) != 0:
                if len(componentName) != 0:
@@ -82,7 +82,7 @@ class ${Assembly}Base(TCL.HardwareDevice.HardwareDevice):
                raise (NameError, "missing telescopeName or componentName")
                raise (NameError, "missing telescopeName or componentName")


            if telescopeName != None:
            if telescopeName != None:
                self._devices["SCADA/" + telescopeName + "/"+"${Assembly}"] = ""
                self._devices["CONTROL/" + telescopeName + "/"+"${Assembly}"] = ""
        """
        """
        if componentName != None:
        if componentName != None:
                self._devices[componentName] = ""
                self._devices[componentName] = ""