Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
igicerovsky committed Feb 29, 2024
1 parent d2dde41 commit 4f84eb7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Hamiltom report changelog

## v0.1.9

27.02.2024

- boundary conditions update for fit curve points and sample points
- manual dilution `10` special case: 1 valid point requred for information only

## v0.1.8

21.0.2.2024
Expand Down
8 changes: 2 additions & 6 deletions elisarep/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,8 @@ def final_sample_info(all_info, pre_dilution, limits):
if info['enum'] == SampleInfo.NAN_HIGH:
msg = f'>{info["value"] * pre_dilution:.{RESULT_DIGITS}e}'
elif info['enum'] == SampleInfo.NAN_LOW or info['enum'] == SampleInfo.LOW:
if pre_dilution <= PRE_DILUTION_THRESHOLD:
valid_ex = True
msg = f'<{info["value"] * pre_dilution:.{RESULT_DIGITS}e}'
else:
valid_ex = False
msg = f'<{info["value"] * pre_dilution:.{RESULT_DIGITS}e}'
valid_ex = pre_dilution <= PRE_DILUTION_THRESHOLD
msg = f'<{info["value"] * pre_dilution:.{RESULT_DIGITS}e}'
elif info['enum'] == SampleInfo.HIGH:
msg = f'>{info["value"] * pre_dilution:.{RESULT_DIGITS}e}'
elif info['enum'] == SampleInfo.VALID_PTS:
Expand Down

0 comments on commit 4f84eb7

Please sign in to comment.