Skip to content

Commit ae538cb

Browse files
committed
connect to IDR
1 parent fb1e275 commit ae538cb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

connect.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import sys
2+
from omero.gateway import BlitzGateway
3+
HOST = 'ws://idr.openmicroscopy.org/omero-ws'
4+
conn = BlitzGateway('public', 'public',
5+
host=HOST, secure=True)
6+
if conn.connect() is True:
7+
print("connected")
8+
conn.close()
9+
else:
10+
print("Connection failed")
11+
sys.exit()

0 commit comments

Comments
 (0)