Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/v1.10.1 to develop #87

Merged
merged 7 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion clarity_epp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import argparse

import genologics.lims
from tenacity import Retrying, RetryError, stop_after_attempt, wait_fixed

import clarity_epp.upload
import clarity_epp.export
Expand All @@ -13,10 +14,17 @@

import config

# Setup lims connection
# Setup lims connection and try connection twice
lims = genologics.lims.Lims(config.baseuri, config.username, config.password)
genologics.lims.TIMEOUT = config.api_timeout

try:
for lims_connection_attempt in Retrying(stop=stop_after_attempt(2), wait=wait_fixed(1)):
with lims_connection_attempt:
lims.check_version()
except RetryError:
raise Exception('Could not connect to Clarity LIMS.')


# Export Functions
def export_bioanalyzer(args):
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ argparse==1.4.0
xmltodict==0.12.0
pytest==7.0.1
pytest-mock==3.6.1
tenacity==8.2.2
Loading