rename framework methods to camelCase

for easier distinction:
- camelCase or singleword: framework method
- snake_case: driver method

(driver) parameters are lowercase, single word framework variables may
have to start with uppercase letters to distinguish...

Change-Id: I76536b6390324625b242c4f190553014c2ca61d6
Reviewed-on: https://forge.frm2.tum.de/review/20295
Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de>
Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
This commit is contained in:
Enrico Faulhaber
2019-04-01 16:30:21 +02:00
parent 22ff707e51
commit 3eaa32d514
9 changed files with 55 additions and 59 deletions

View File

@ -122,7 +122,7 @@ class MagneticField(Drivable):
'status' : Override(datatype=TupleOf(EnumType(Status), StringType())),
}
def init_module(self):
def initModule(self):
self._state = Enum('state', idle=1, switch_on=2, switch_off=3, ramp=4).idle
self._heatswitch = self.DISPATCHER.get_module(self.heatswitch)
_thread = threading.Thread(target=self._thread)
@ -226,7 +226,7 @@ class SampleTemp(Drivable):
),
}
def init_module(self):
def initModule(self):
_thread = threading.Thread(target=self._thread)
_thread.daemon = True
_thread.start()