Skip to content

Refactor dataset retrieval specs#359

Merged
j-atkins merged 3 commits into
migrate-v4from
refactor-fetch-spec
Jul 22, 2026
Merged

Refactor dataset retrieval specs#359
j-atkins merged 3 commits into
migrate-v4from
refactor-fetch-spec

Conversation

@j-atkins

@j-atkins j-atkins commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

This PR is a small refactoring for the migrate-v4 branch. The previous limit_spec and spacetime_buffer_size logic was getting messy and unclear how the two dicts should interact. I find adding a FetchSpec dataclass in base.py to be clearer and more explicit about the requirements for Instrument classes and clearer about what the defaults are.

@j-atkins
j-atkins requested a review from erikvansebille July 21, 2026 13:50
@j-atkins
j-atkins marked this pull request as ready for review July 21, 2026 13:55

@erikvansebille erikvansebille left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; just one question below



@dataclass
class FetchSpec:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this class need its own unit tests? Or is it tested sufficiently with the instrument tests?

@j-atkins j-atkins Jul 22, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added an additional test for thoroughness 👍

@j-atkins
j-atkins merged commit ae98059 into migrate-v4 Jul 22, 2026
8 of 12 checks passed
@j-atkins
j-atkins deleted the refactor-fetch-spec branch July 22, 2026 12:44
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.

2 participants