Skip to content

Commit

Permalink
connect to IDR
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Aug 31, 2022
1 parent fb1e275 commit ae538cb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions connect.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import sys
from omero.gateway import BlitzGateway
HOST = 'ws://idr.openmicroscopy.org/omero-ws'
conn = BlitzGateway('public', 'public',
host=HOST, secure=True)
if conn.connect() is True:
print("connected")
conn.close()
else:
print("Connection failed")
sys.exit()

0 comments on commit ae538cb

Please sign in to comment.