diff --git a/tools/omero_get_children_ids/omero_get_children_ids.py b/tools/omero_get_children_ids/omero_get_children_ids.py index 0046bad..6f8f40e 100644 --- a/tools/omero_get_children_ids/omero_get_children_ids.py +++ b/tools/omero_get_children_ids/omero_get_children_ids.py @@ -1,7 +1,6 @@ import argparse import json -import omero from omero.gateway import BlitzGateway @@ -34,16 +33,14 @@ def recursive_get_children_id(parent_object, final_object_type): return output -def get_children_ids( - parent_object_type, - omero_id, - final_object_type, - omero_username, - omero_password, - omero_host="idr.openmicroscopy.org", - omero_secured=False, - ): - ## Connect to omero: +def get_children_ids(parent_object_type, + omero_id, + final_object_type, + omero_username, + omero_password, + omero_host="idr.openmicroscopy.org", + omero_secured=False): + # Connect to omero: with BlitzGateway( omero_username, omero_password, host=omero_host, secure=omero_secured ) as conn: