Skip to content

Commit

Permalink
Add api timeout config
Browse files Browse the repository at this point in the history
  • Loading branch information
rernst committed Oct 24, 2023
1 parent 88d8e84 commit 981ea8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clarity_epp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import sys
import argparse

from genologics.lims import Lims

import genologics.lims

import clarity_epp.upload
import clarity_epp.export
Expand All @@ -15,7 +14,8 @@
import config

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


# Export Functions
Expand Down Expand Up @@ -298,8 +298,8 @@ def placement_pipetting(args):

parser_export_labels = subparser_export.add_parser('labels', help='Export container labels', parents=[output_parser])
parser_export_labels.add_argument(
'type',
choices=['container', 'container_sample', 'storage_location', 'nunc_mix_sample'],
'type',
choices=['container', 'container_sample', 'storage_location', 'nunc_mix_sample'],
help='Label type')
parser_export_labels.add_argument('process_id', help='Clarity lims process id')
parser_export_labels.add_argument('-d', '--description', nargs='?', help='Container name description')
Expand Down
1 change: 1 addition & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
baseuri = 'https://change_this_lims.uri'
username = 'change_this'
password = 'change_this'
api_timeout = 60

# Email settings
email = {
Expand Down

0 comments on commit 981ea8f

Please sign in to comment.