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

refactor ddf_presched to make config easier. eliminate magic numbers #151

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

yoachim
Copy link
Member

@yoachim yoachim commented Jan 23, 2025

Refactor DDF schedulign code a bit in an attempt to make it a little easier for others to come in and use it.

  • Made optimize_ddf_times the only spot where scheduling logic parameters are set
  • Removed magic numbers and COSMOS specific bits from ddf_slopes (this does make it return results that are not exact matches to previous versions)
  • Converted min_season_length kwarg to be in days rather than a unitless fraction.

Copy link
Collaborator

@ehneilsen ehneilsen left a comment

Choose a reason for hiding this comment

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

Looks fine to me.

@yoachim yoachim merged commit 7bbcb33 into main Jan 27, 2025
9 checks passed
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