|
@@ -34,7 +34,14 @@ class Calibrations(object):
|
|
|
'fallTolerance': self.FALL_TOLERANCE,
|
|
|
}
|
|
|
|
|
|
- elif remote and not local:
|
|
|
+ elif not remote and local:
|
|
|
+ calibration = {
|
|
|
+ 'tolerance': self.TOLERANCE_RATE,
|
|
|
+ 'threshold': self.THRESHOLD,
|
|
|
+ 'fallTolerance': self.FALL_TOLERANCE,
|
|
|
+ }
|
|
|
+
|
|
|
+ else:
|
|
|
calibration = {
|
|
|
'tolerance': remote.get(
|
|
|
'tolerance',
|
|
@@ -50,13 +57,6 @@ class Calibrations(object):
|
|
|
)
|
|
|
}
|
|
|
|
|
|
- elif not remote and local:
|
|
|
- calibration = {
|
|
|
- 'tolerance': self.TOLERANCE_RATE,
|
|
|
- 'threshold': self.THRESHOLD,
|
|
|
- 'fallTolerance': self.FALL_TOLERANCE,
|
|
|
- }
|
|
|
-
|
|
|
self.items[station] = calibration
|
|
|
|
|
|
return self.items[station]
|