Skip to content

Commit

Permalink
Wrong conversion used for analysis units #503
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMWhitehead authored and philipbaileynar committed Sep 18, 2024
1 parent 1ac46fc commit 2c7ad84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/unit_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ def convert_units(value: float, from_unit: str, to_unit: str, invert: bool = Fal
if invert:
conversion_factor = 1 / conversion_factor

return value / conversion_factor
return value * conversion_factor

0 comments on commit 2c7ad84

Please sign in to comment.