Skip to content

Commit

Permalink
unfix test code
Browse files Browse the repository at this point in the history
  • Loading branch information
fred3m committed May 13, 2024
1 parent 70e614d commit 7182047
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions scripts/rubintv_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,6 @@ def get_join(self):


def connection_test():
REPO_LOCATION = os.getenv(
'DAF_BUTLER_REPOSITORY_INDEX',
'/sdf/group/rubin/repo/ir2/butler.yaml'
)
REPO_COLLECTIONS = os.getenv(
'DAF_BUTLER_COLLECTIONS',
'LSSTCam/raw/all,LSSTCam/calib'
).split('/')

try:
import lsst.afw.image as afwImage
import numpy as np
Expand All @@ -64,8 +55,8 @@ def connection_test():

try:
from lsst.daf.butler import Butler
butler = Butler(REPO_LOCATION,
collections=REPO_COLLECTIONS)
butler = Butler('/sdf/group/rubin/repo/ir2/butler.yaml',
collections=['LSSTCam/raw/all', 'LSSTCam/calib'])
msg = 'Created a full camera butler - repo mount sucessful'
print(msg)
log.info(msg)
Expand Down Expand Up @@ -106,7 +97,7 @@ def main():
"-c", "--config", default=default_config, type=str, help="Location of the configuration file."
)
parser.add_argument(
"-t", "--test", default=True, help="Run connection tests."
"-t", "--test", default=False, help="Run connection tests."
)
args = parser.parse_args()

Expand Down

0 comments on commit 7182047

Please sign in to comment.