Skip to content

Commit

Permalink
Bump to 3.10.10 and add TeleRIS and --non-interactive to PACS_QR.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolphpienaar committed Nov 5, 2022
1 parent fca8b69 commit fa515bd
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
33 changes: 25 additions & 8 deletions PACS_QR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ export BASEMOUNT=/home/dicom
export DB=${BASEMOUNT}/log
export DATADIR=${BASEMOUNT}/data

INTERACTIVE="--tty --interactive"

# The HOST/USER here are FNNDSC specific and can be ignored using
# a '-F' to the script
G_HOST="titan"
Expand All @@ -85,6 +87,7 @@ G_SYNOPSIS="
SYNOPSIS
PACS_QR.sh \\
[--non-interactive] \\
[--container <containerName>] \\
[--baseMount> <baseDBmountDir>] \\
[-F] \\
Expand Down Expand Up @@ -158,6 +161,11 @@ G_SYNOPSIS="
ARGS
[--non-interactive]
If selected, remove the '--tty --interactive' flags from the docker
exec command, effectively making the execution 'non-interactive'. This
is useful in some cases (esp when coming from Windows based putty).
[--container <containerName>]
The name of the container image to execute. By default this is
'fnndsc/pypx' but can be overriden if local image is to be used.
Expand Down Expand Up @@ -406,7 +414,7 @@ function institution_set
orthanc)
SWIFTKEY=local
CUBEKEY=local
SWIFTPACS=orthanc
SWIFTSERVICEPACS=orthanc
AET=CHRISLOCAL
PACSIP=127.0.0.1
PACSPORT=4242
Expand All @@ -415,7 +423,7 @@ function institution_set
BCH-chris)
SWIFTKEY=local
CUBEKEY=local
SWIFTPACS=PACSDCM
SWIFTSERVICEPACS=PACSDCM
AET=CHRISV3
PACSIP=134.174.12.21
PACSPORT=104
Expand All @@ -424,7 +432,7 @@ function institution_set
BCH-chrisdev)
SWIFTKEY=local
CUBEKEY=local
SWIFTPACS=PACSDCM
SWIFTSERVICEPACS=PACSDCM
AET=CHRISV3
PACSIP=134.174.12.21
PACSPORT=104
Expand All @@ -433,7 +441,7 @@ function institution_set
BCH-christest)
SWIFTKEY=local
CUBEKEY=local
SWIFTPACS=PACSDCM
SWIFTSERVICEPACS=PACSDCM
AET=CHRISV3
PACSIP=134.174.12.21
PACSPORT=104
Expand All @@ -442,7 +450,7 @@ function institution_set
MGH)
SWIFTKEY=local
CUBEKEY=local
SWIFTPACS=PACSDCM
SWIFTSERVICEPACS=PACSDCM
AET=ELLENGRANT
PACSIP=172.16.128.91
PACSPORT=104
Expand All @@ -451,11 +459,20 @@ function institution_set
MGH2)
SWIFTKEY=local
CUBEKEY=local
SWIFTPACS=PACSDCM
SWIFTSERVICEPACS=PACSDCM
AET=ELLENGRANT-CH
PACSIP=172.16.128.91
PACSPORT=104
AEC=SDM1
;;
TeleRIS)
SWIFTKEY=local
CUBEKEY=local
SWIFTSERVICEPACS=TeleRIS
AET=CHRISV3
PACSIP=134.174.12.81
PACSPORT=104
AEC=CHRIS
;;
*) ;;
esac
Expand All @@ -466,6 +483,7 @@ while :; do
-h|-\?|-x|--help)
printf "%s" "$G_SYNOPSIS"
exit 1 ;;
--non-interactive) INTERACTIVE="" ;;
--container) PYPX=$2 ;;
--baseMount) BASEMOUNT=$2 ;;
--debug) let Gb_DEBUG=1 ;;
Expand Down Expand Up @@ -567,8 +585,7 @@ fi
# The --tty --interactive is necessary to allow for realtime
# logging of activity
# G_REPORTARGS="--printReport tabular"
QUERY="docker run $DEBUG \
--tty --interactive \
QUERY="docker run $DEBUG $INTERACTIVE \
--rm \
--volume $BASEMOUNT:$BASEMOUNT \
$PYPX \
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
####################################
pypx - 3.10.6
pypx - 3.10.10
####################################

.. image:: https://badge.fury.io/py/pypx.svg
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def readme():

setup(
name = 'pypx',
version = '3.10.8',
version = '3.10.10',
description = 'PACS/ChRIS core tools and utils',
long_description = readme(),
url = 'http://github.com/fnndsc/pypx',
Expand Down

0 comments on commit fa515bd

Please sign in to comment.