You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just wanted to make you aware of a small bug in line 803 of populate.py.
While playing around with the script populate metadata I had a case where - unknowingly - two images were named the same.
This problem is caught in the if clause : if iname in self.images_by_name
but in the following raised Exception message: "Image named %s(id=%d) present. (id=%s) % ( iname, self.images_by_name[iname], iid
the second format %d expects the image ID but gets an ImageI variable.
This is easily corrected by adding self.images_by_name[iname].id.val
I tried it out and now it gives the correct error message.
The text was updated successfully, but these errors were encountered:
will-moore
added a commit
to will-moore/omero-metadata
that referenced
this issue
Feb 16, 2022
Hello,
I just wanted to make you aware of a small bug in line 803 of
populate.py
.While playing around with the script
populate metadata
I had a case where - unknowingly - two images were named the same.This problem is caught in the if clause :
if iname in self.images_by_name
but in the following raised Exception message:
"Image named %s(id=%d) present. (id=%s) % ( iname, self.images_by_name[iname], iid
the second format
%d
expects the image ID but gets anImageI
variable.This is easily corrected by adding
self.images_by_name[iname]
.id.valI tried it out and now it gives the correct error message.
The text was updated successfully, but these errors were encountered: