Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Nov 14, 2019
1 parent eb91059 commit 0d89532
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion omero_parade/annotation_filters/omero_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_script(request, script_name, conn):
js_object_attr = "wellId"
obj_ids = get_well_ids(conn, plate_id)
else:
obj_ids = [long(i) for i in image_ids]
obj_ids = [int(i) for i in image_ids]
query_service = conn.getQueryService()
params = ParametersI()
# Include "-1" so that if we have no object IDs that the query does
Expand Down
2 changes: 1 addition & 1 deletion omero_parade/data_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ def get_image_map_annotations(conn, plate_id, field_id, ns, key=None):
for l in links:
for kv in l.child.getMapValue():
if key == kv.name:
map_values[l.parent.id.val] = long(kv.value)
map_values[l.parent.id.val] = int(kv.value)
return map_values
2 changes: 1 addition & 1 deletion omero_parade/omero_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_script(request, script_name, conn):
objects = conn.getObjects('Image', opts={'dataset': dataset_id})
img_ids = [i.id for i in objects]
else:
img_ids = [long(i) for i in image_ids]
img_ids = [int(i) for i in image_ids]
query_service = conn.getQueryService()

if script_name == "ROI_count":
Expand Down
2 changes: 1 addition & 1 deletion omero_parade/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_long_or_default(request, name, default):
val = None
val_raw = request.GET.get(name, default)
if val_raw is not None:
val = long(val_raw)
val = int(val_raw)
return val


Expand Down

0 comments on commit 0d89532

Please sign in to comment.