Skip to content

Refactor dataset retrieval specs#359

Open
j-atkins wants to merge 2 commits into
migrate-v4from
refactor-fetch-spec
Open

Refactor dataset retrieval specs#359
j-atkins wants to merge 2 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?

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