From ae538cbb3ff31f4fe23e5929c8607c8848370a78 Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Wed, 31 Aug 2022 09:50:58 +0100 Subject: [PATCH] connect to IDR --- connect.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 connect.py diff --git a/connect.py b/connect.py new file mode 100644 index 000000000..c7b4d9f8f --- /dev/null +++ b/connect.py @@ -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()