sure, you can use all python functions, if you take care that necessary modules are installed and configured correctly.
E.g. we use SciPy for some statistics.
You can create complex user-defined functions per code in your calculations.py file.
For simple conditions you can use functional syntax kind of
value = this if condition else that
Significant digits are on my wishlist too, my workaround is about applying Calculate Precision from Uncertainties, which works quite well with results <1.
e.g. if you define a uncertainty of 1 %, the result is rounded to the digit, which represents 1 % of the original value, so you get 3 significant figures.
With 10 % you get 2 digits, etc.
we use SciPy for some statistics.
You can create complex user-defined functions per code in your calculations.py file.
For simple conditions you can use functional syntax kind of
value = this if condition else that
Significant digits are on my wishlist too, my workaround is about applying Calculate Precision from Uncertainties, which works quite well with results <1.
e.g. if you define a uncertainty of 1 %, the result is rounded to the digit, which represents 1 % of the original value, so you get 3 significant figures.
With 10 % you get 2 digits, etc.
Is it ok if you share some examples of it here? I am still new to Senaite; your help will be very much appreciated. Thanks!