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

OPSIM-1190: remove deprecated features and basis functions #103

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

rhiannonlynne
Copy link
Member

Removed basis functions: LimitObsPnightBasisFunction SunHighLimitBasisFunction TargetMapBasisFunction AvoidLongGapsBasisFunction AvoidFastRevisits GoalStrictFilterBasisFunction AggressiveSlewtimeBasisFunction SkybrightnessLimitAtHpixBasisFunction SkybrightnessLimitBasisFunction CablewrapUnwrapBasisFunction TemplateGenerateBasisFunction FootprintNvisBasisFunction ThirdObservationBasisFunction NearSunTwilightBasisFunction ObservedTwiceBasisFunction LimitRepeatBasisFunction ZenithShadowMaskBasisFunction MaskAzimuthBasisFunction TargetMapModuloBasisFunction

Removed features: NObsSurvey (and note that NObsCount now accepts a note as well as a filter name to double for what was previously in NObsSurvey), LastsequenceObservation LastFilterChange CoaddedDepth NObservationsSeason NObsCountSeason SurveyInNight

Simplified use of ad-hoc surveys in unit tests by swapping in simple_pairs_survey and simple_greedy_survey. Unit test coverage remains the ~same (slightly higher).

Caught a bug in a (now used in unit test) sunAltBasisFunction.

@rhiannonlynne
Copy link
Member Author

Tagging @tribeiro on this PR in particular .. I know you're looking at what we're changing, and so probably also noticed #102 in particular (for the change from empty_observation -> ObservationsArray), as well as #100 (conditions object update, probably just pulling out things you weren't adding anyway) and #88 for the updates to the AltAzShadowMaskBasisFunction + use with conditions.tel_alt_limits, conditions.tel_az_limits, and conditions.kinematic_alt_limits, conditions.kinematic_az_limits.

@rhiannonlynne
Copy link
Member Author

For clarity - I would like to request the review from @yoachim .. Tiago says he's ok with that :)

Copy link
Member

@yoachim yoachim left a comment

Choose a reason for hiding this comment

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

Looks good. ZenithShadowMaskBasisFunction is still being used in ts_fbs_utils. Could just make that a subclass of AltAzShadowMaskBasisFunction and it'll probably work.

The SunAltLimitBasisFunction is only being used in tests. But it's small enough that it's fine if it survives the purge.

I was surprised RotatorAngle made the cut, but does seem like it's getting used.

@rhiannonlynne
Copy link
Member Author

I really only deprecated the things which had been marked earlier, or which once those things had been removed, no longer worked - so I might have missed some. I may have taken a few more things if they didn't have all the class attributes, but figured these were things I'd just failed to mark earlier.

I'm going to go ahead and remove the ZenithMaskShadowFunction and do a pr for ts-FBs-utils ... I think it will need more work anyway (I thought it was using the TargetMapBasis function, though could be wrong).

@rhiannonlynne rhiannonlynne merged commit ce6e319 into main Sep 16, 2024
7 checks passed
@rhiannonlynne rhiannonlynne deleted the tickets/OPSIM-1190 branch September 16, 2024 20:56
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