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-1086: remove obsolete code and simplify upkeep of example_scheduler #372

Merged
merged 16 commits into from
Oct 17, 2023

Conversation

rhiannonlynne
Copy link
Member

@rhiannonlynne rhiannonlynne commented Oct 14, 2023

This PR was started to simplify some of the code in the footprints file (mostly, removing functions which were unused at this time and replaced by SkyAreaGenerators). Removing code which has names like wfd_healpixels which could tempt users to try to define the WFD by these functions -- but that we don't keep up to date with current definitions -- seems like good preventative maintenance.

And then I removed some extraneous code from the example_scheduler file, and wanted to be able to use the arg parser to set standard arguments for the baseline survey while using a notebook .. and maybe to keep the example_scheduler up to date with the evolving baseline more easily. So there are changes in this file as well.

I also moved some of what I see being used as standard changes to some of the keyword arguments for the sky_area classes into these classes directly. This should help avoid people missing these updates if they don't notice the kwarg being set in the simulation files.

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.

It'd be nice if the big docstring/comment changes were separate from the code changes.

@rhiannonlynne
Copy link
Member Author

rhiannonlynne commented Oct 16, 2023

I tried to do them in separate commits, but for some of them it was a bit too entangled.
Ah - right, maybe also the thing is that most of the time ruff complains about docstring lines being too long. So most of "ruff" changes are due to that. Sometimes ruff complains about unused variables though, so those are also in the same changes due to ruff. I could just label them all "ruff" I suppose.

@rhiannonlynne rhiannonlynne merged commit 1cdbd42 into main Oct 17, 2023
7 of 9 checks passed
@rhiannonlynne rhiannonlynne deleted the tickets/OPSIM-1086 branch October 17, 2023 23:20
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