Skip to content

More flexible bounding box model#65

Merged
trey-stafford merged 1 commit intomainfrom
51-consistent-bbox
May 28, 2025
Merged

More flexible bounding box model#65
trey-stafford merged 1 commit intomainfrom
51-consistent-bbox

Conversation

@trey-stafford
Copy link
Copy Markdown
Contributor

@trey-stafford trey-stafford commented May 28, 2025

Attempt to address #51

This is much more flexible, but classes that inherit BoundingBox as a field will still raise a validation error if BoundingBox is not initialized with a dict or model instance (e.g. DatasetSearchParameters). This is the most likely point that users would define and use a bounding box. Ideally, a user could pass in a list representing a BBOX at the DatasetSearchParameters level.


📚 Documentation preview 📚: https://iceflow--65.org.readthedocs.build/en/65/

This is much more flexible, but classes that inherit BoundingBox as a field will
still raise a validation error if BoundingBox is not initialized with a dict or
model instance (e.g. `DatasetSearchParameters`). This is the most likely point
that users would define and use a bounding box. Ideally, a user could pass in a
list representing a BBOX at the `DatasetSearchParameters` level
@trey-stafford
Copy link
Copy Markdown
Contributor Author

I think this still leaves #51 unresolved, but it is an improvement on the existing interface, so I'll go ahead and merge this. We can continue to make improvements to the user-facing API in another PR.

@trey-stafford trey-stafford marked this pull request as ready for review May 28, 2025 20:16
@trey-stafford trey-stafford merged commit 967fd2d into main May 28, 2025
5 checks passed
@trey-stafford trey-stafford deleted the 51-consistent-bbox branch May 28, 2025 20:18
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