Skip to content

Commit

Permalink
Merge pull request #380 from kedhammar/ba-fix
Browse files Browse the repository at this point in the history
Bugfix BioAnalyzer results pasing
  • Loading branch information
kedhammar authored Nov 4, 2024
2 parents 21ce4aa + 2a53ae5 commit a3d1b58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions VERSIONLOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Scilifelab_epps Version Log

## 20241104.1

Suspected bugfix for BA parsing script.

## 20241025.1

Support MiSeq V2 Micro
Expand Down
4 changes: 2 additions & 2 deletions scripts/parse_ba_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def main(lims, args):
xml_query, return_type = udf_to_xml[udf_name]

result = xml_results.find(f".//{xml_query}").text.strip()
if isinstance(return_type, int):
if return_type is int:
result = int(round(float(result), 0))
elif isinstance(return_type, float):
elif return_type is float:
result = float(result)

try:
Expand Down

0 comments on commit a3d1b58

Please sign in to comment.