Skip to content
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

Add FIlterSet and InstrumentFilterSet models #72

Open
wants to merge 18 commits into
base: dev
Choose a base branch
from

Conversation

nvolgenau
Copy link
Collaborator

Create FilterSet and InstrumentFilterSet models. Create update_observation_filterset function to select only specific filtersets.

The get_last_instrumentfilterset_age method defines the filterset_age as the maximum age of the individual filters. This may cause the "middle" filterset (BVR for Johnson-Cousins, gri for Sloan) to not get selected.

@phycodurus phycodurus self-requested a review December 2, 2024 19:47
filter_dates.append([inst_filter, inst_filter.get_last_calibration_age(self.dynamic_cadence.observation_group)]) # TODO: explore an annotation instead

Copy link
Collaborator

Choose a reason for hiding this comment

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

the linter will choke on this: you can pip install flake8 and run it on your repo before you make your commits like this:
flake8 calibration_tom* --exclude=*/migrations/* --max-line-length=120

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.

3 participants