Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check_pixels.py script #55

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Include image.name in Error logs
will-moore committed Dec 12, 2023
commit dfb9de81e1634ab8caf01341e48329bbbaf350eb
4 changes: 2 additions & 2 deletions scripts/check_pixels.py
Original file line number Diff line number Diff line change
@@ -49,9 +49,9 @@ def check_image(idr_conn, image, max_planes):

for plane, idr_plane, idx in zip(planes, idr_planes, zctList):
if not np.array_equiv(plane, idr_plane):
log("Error: Mismatch for Image: %s at plane (z, c, t): %s" % (image.id, idx))
log("Error: Mismatch for Image:%s %s at plane (z, c, t): %s" % (image.id, image.name, idx))
except Exception as ex:
log("Error: Image:%s %s" % (image.id, ex))
log("Error: Image:%s %s %s" % (image.id, image.name, ex))


def get_object(conn, obj_string):