Skip to content

Commit

Permalink
Fix error in default multi-reports when rendering uncertainties (#137)
Browse files Browse the repository at this point in the history
* Register all components on ISenaiteImpressLayer

* Added upgrade step

* Changelog updated

* Fix error when formatting uncertainties

Removed the analysis result from the function call, because this was
removed in: senaite/senaite.core#2224

---------

Co-authored-by: Jordi Puiggené <jp@naralabs.com>
  • Loading branch information
ramonski and xispa authored Feb 14, 2023
1 parent 9feb13d commit eb30909
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/senaite/impress/analysisrequest/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def get_formatted_result(self, analysis):
def get_formatted_uncertainty(self, analysis):
uncertainty = format_uncertainty(
analysis.instance,
analysis.getResult(),
decimalmark=self.decimal_mark,
sciformat=self.scientific_notation)
return "[&plusmn; {}]".format(uncertainty)
Expand Down

0 comments on commit eb30909

Please sign in to comment.