renamed gamma sensor
This commit is contained in:
parent
652e122d30
commit
9728b5cc98
|
@ -2,14 +2,12 @@ from module import module
|
||||||
from random import randint
|
from random import randint
|
||||||
class gamma_sensor(module):
|
class gamma_sensor(module):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__("gamma spectrometer")
|
super().__init__("gammaSensor")
|
||||||
self.fields["name"] = "gammaSensor"
|
|
||||||
self.fields["detections"] = 0
|
self.fields["detections"] = 0
|
||||||
self.fields["detections_str"] = []
|
self.fields["detections_str"] = []
|
||||||
self.fields["threshold"] = 90
|
self.fields["threshold"] = 90
|
||||||
self.fields["flush"] = 0
|
self.fields["flush"] = 0
|
||||||
self.writable = ["threshold","flush"]
|
self.writable = ["threshold","flush"]
|
||||||
print("id is:", self.id)
|
|
||||||
|
|
||||||
def mod_get(self, field="none"):
|
def mod_get(self, field="none"):
|
||||||
if field not in self.fields:
|
if field not in self.fields:
|
Loading…
Reference in a new issue