Commit d85e23e2 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Adds vmn and iab calculationµs in hardware_system

Showing with 1 addition and 1 deletion
+1 -1
......@@ -317,7 +317,7 @@ class OhmPiHardware:
def last_vmn_dev(self, delay=0.): # TODO: should compute std per stack because this does not account for SP...
v = np.where((self.readings[:, 0] >= delay) & (self.readings[:, 2] != 0))[0]
if len(v) > 1:
return 100. * np.std(self.readings[v, 2] * (self.readings[v, 4]) - self.sp) / self.last_vmn(delay=delay)
return 100. * np.std(self.readings[v, 2] * (self.readings[v, 4] - self.sp)) / self.last_vmn(delay=delay)
else:
return np.nan
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment