Commit c5b98d30 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Add last_rho and last_std properties

Showing with 1 addition and 1 deletion
+1 -1
......@@ -207,7 +207,7 @@ class OhmPiHardware:
@property
def last_dev(self):
if len(self.readings) > 1:
return 100. * np.std(self.readings[:, 2] * self.readings[:, 4] / self.readings[:, 3])/self.last_rho()
return 100. * np.std(self.readings[:, 2] * self.readings[:, 4] / self.readings[:, 3])/self.last_rho
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