Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Dec 21, 2023
1 parent 2e65826 commit 1f70547
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/index_distance_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,15 +378,19 @@ def main(lims, pid):
process.udf["Comments"] += "\n".join(message)
process.put()
else:
print('No issue detected with indexes or placement', file=sys.stderr)
message.append('No issue detected with indexes or placement')
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":
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)
parser.add_argument("--pid", help="Lims id for current Process")
Expand Down

0 comments on commit 1f70547

Please sign in to comment.