-
Notifications
You must be signed in to change notification settings - Fork 14
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
#56 Canvas helper to add hw from iiif image info #62
#56 Canvas helper to add hw from iiif image info #62
Conversation
Agree, since the dummy implementation will need to be removed and it would be nicer to wait and remove that before merge.
Not that I can immediately think of
I think that raising the errors to the main library is fine - we can document that the helper may raise and leave handling that up to the end user. I think this is better than silently failing and essentially requiring them to check for success after calling the function.
Afraid I'm not sure about this. @helrond, @p-galligan - any ideas? |
I'll set this to draft until the other helper has been merged; depends on #54 |
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.
Impressive work, I think we should also think if it is the case of allowing to add directly a service using the add_image
method.
Returns: | ||
anno_page (iiif-prezi3.skeleton.AnnotationPage): the AnnotationPage with | ||
an Annotation and ResourceItem attached. | ||
""" | ||
body = ResourceItem(id=image_url, type='Image') | ||
annotation = Annotation(id=anno_id, body=body, target=image_url, motivation='painting', type='Annotation') |
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.
Just a comment, the type of the main IIIF object should be set by default from the JSON schema, so theoretically there should be no need for specifying it for Annotation and AnnotationPage, Canavses etc. etc.
Earlier today the PR diff was showing a lot of changes I didn't make — I thought I had updated my fork and rebased my branch properly, not sure why it was flagging so many other changes. I just updated again and now the diff is accurate. Sorry about that. |
I think it merged rather than rebasing on top of the changes, because the commit list was showing a lot of commits from main branch. Thanks for the great work - I'm happy to merge based on the two approvals when Giacomo's SetHWD is merged Edit: I confused this with the Documentation PR, whoops! |
implements
set_hwd_from_iiif
helper as described in #56I created a placeholder
set_hwd
for testing purposes; maybe this should not be merged until the other helper is implementedrequests
to tox dependencies to get tests to work locally, shouldn't it pull from setup.py?NOTE: this work depends on #70 . Once that is merged, this can be updated and the placeholder
set_hwd
method removed.