Skip to content

dags: Refactor image description into util class#59

Draft
awilfox wants to merge 2 commits intomainfrom
awilfox/AP-670-image-describer-refactor
Draft

dags: Refactor image description into util class#59
awilfox wants to merge 2 commits intomainfrom
awilfox/AP-670-image-describer-refactor

Conversation

@awilfox
Copy link
Copy Markdown
Member

@awilfox awilfox commented May 5, 2026

This adds an ImageDescriber class that accepts a processed TIND record
as input and outputs a description of an image contained in that record.

Test coverage is 86%; this is because we are presently not testing the
"downloaded image is too large" code path.

Ref: AP-670


awilfox added 2 commits May 1, 2026 11:34
We can reuse this code in many different ways by making it a fully
parameterised class instead of embedded in the DAG.

This also gives us a lot of flexibility in how we use it in the future.

Ref: AP-670
This adds an `ImageDescriber` class that accepts a processed TIND record
as input and outputs a description of an image contained in that record.

Test coverage is 86%; this is because we are presently not testing the
"downloaded image is too large" code path.

Ref: AP-670
@awilfox awilfox self-assigned this May 5, 2026
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

Successfully merging this pull request may close these issues.

1 participant