Skip to content

Commit

Permalink
lint python script
Browse files Browse the repository at this point in the history
  • Loading branch information
lldelisle committed Dec 22, 2023
1 parent 5ba56b2 commit 8ac44b0
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions tools/omero_get_children_ids/omero_get_children_ids.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import argparse
import json

import omero
from omero.gateway import BlitzGateway


Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8ac44b0

Please sign in to comment.