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

False warning about number of images per grp/page #51

Closed
bertsky opened this issue Aug 29, 2022 · 0 comments
Closed

False warning about number of images per grp/page #51

bertsky opened this issue Aug 29, 2022 · 0 comments

Comments

@bertsky
Copy link
Contributor

bertsky commented Aug 29, 2022

images = [image for image in file_index.values() if
image.static_page_id == page_id and image.fileGrp == file_group]

This does not actually single out files with .mimetype.startswith('image/'). So we end up with a false warning:

ocrd_browser.model.document.Document.get_image_paths - Found 2 images for PAGE PHYS_0001 and fileGrp BIN, expected 1

Could also be worse than just a false warning...

@hnesk hnesk closed this as completed in e2f799b Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant