Check it out - you can import the NumPy library to perform statistics calculations in Senaite. Here is sample standard deviation. If you want to get population standard deviation you remove the “, ddof=1” parameter at the end. Hope this helps someone!
5 Likes
Great Josh, thanks for sharing!
You could even integrate that code into an externaly calculation module, see Analysis Calculations · SENAITE
1 Like
Hi, I’m pretty new to Senaite (using version 2.4). I have been trying to implement the example you mentioned for creating and external calculation module but keep bumping into a error “Validation failed: Could not import module ‘calculations’ Validation failed(isEmpty): ‘calculations’ is not empty.” for the total_hardness example.
Any clues on what I’m doing wrong?