Skip to content

Commit

Permalink
Merge branch 'gha' of github.com:kedhammar/scilifelab_epps into gha
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Dec 21, 2023
2 parents 37f8b9d + 343fb0a commit 2e65826
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 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

## 20231220.1

Fix bug with verify index EPP

## 20231219.1

Fix bug that log is missing with index checker
Expand Down
16 changes: 7 additions & 9 deletions scripts/index_distance_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,17 +377,15 @@ def main(lims, pid):
] += "**Warnings from Verify Indexes and Placement EPP: **\n"
process.udf["Comments"] += "\n".join(message)
process.put()
else:
with open("check_index_distance.log", "w") as logContext:
logContext.write("\n".join(message))
for out in process.all_outputs():
if out.name == "Check Index Distance Log":
attach_file(
os.path.join(os.getcwd(), "check_index_distance.log"), out
)
else:
print("No issue detected with indexes or placement", file=sys.stderr)
print('No issue detected with indexes or placement', file=sys.stderr)
message.append('No issue detected with indexes or placement')

with open("index_checker.log", "w") as logContext:
logContext.write("\n".join(message))
for out in process.all_outputs():
if out.name == "Check Index Distance Log" or out.name == "Verify Index and Placement Log":
attach_file(os.path.join(os.getcwd(), "index_checker.log"), out)

if __name__ == "__main__":
parser = ArgumentParser(description=DESC)
Expand Down

0 comments on commit 2e65826

Please sign in to comment.