-
Notifications
You must be signed in to change notification settings - Fork 33
OcrdMets.get_physical_pages_for: edge case empty list for_fileIds #1193
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
Conversation
(consider case where for_fileIds is an empty list)
kba
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will release right away.
|
|
||
| def merge(self, other_mets, force=False, fileGrp_mapping=None, fileId_mapping=None, pageId_mapping=None, | ||
| after_add_cb=None, **kwargs): | ||
| def merge(self, other_mets, force : bool = False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| def merge(self, other_mets, force : bool = False, | |
| def merge(self, other_mets : 'OcrdMets', force : bool = False, |
You can reference classes not yet defined by quoting them.
| # Create a new entry in the fptr cache and | ||
| # assign an empty dictionary to hold the fileids | ||
| self._fptr_cache[pageId] = {} | ||
| self._fptr_cache.setdefault(pageId, {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eek, thx for spotting
|
|
Reason is simply that ocrd/core installs via normal site-packages, whereas ocrd/all on top of that installs core editable (under /build/core) – so in these images we have both versions next to each other. |
|
Fixes #1192
Fixes #1195