Skip to content

Commit e7e54a3

Browse files
committed
Add --host parameter to check_pixels.py
1 parent 1f4c0ba commit e7e54a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/check_pixels.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ def main(argv):
121121
parser = argparse.ArgumentParser()
122122
parser.add_argument('object', help='Object:ID where Object is Screen, Plate, Project, Dataset, Image')
123123
# parser.add_argument('logfile', help='File path to output log')
124+
parser.add_argument('--host', default="idr.openmicroscopy.org",
125+
help="Remote server that we want to check our local data against")
124126
parser.add_argument('--max-images', type=int, default=0,
125127
help='Max number of images per FILESET. Default is to check ALL')
126128
parser.add_argument('--max-planes',
@@ -144,7 +146,7 @@ def main(argv):
144146

145147
# Create connection to IDR server
146148
# NB: conn.connect() not working on IDR. Do it like this
147-
idr_client = omero.client(host="idr.openmicroscopy.org", port=4064)
149+
idr_client = omero.client(host=args.host, port=4064)
148150
idr_client.createSession('public', 'public')
149151
idr_conn = BlitzGateway(client_obj=idr_client)
150152

0 commit comments

Comments
 (0)