-
Notifications
You must be signed in to change notification settings - Fork 1
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
tickets/PREOPS-5360: clean up the nightsum and prenight Times Square notebooks by updating schedview to support them better #101
Conversation
Can you add a screenshot of what gets produced by |
Looks fine, but ruff failure. |
warn("No visits match constraints.") | ||
visits = pd.DataFrame(rubin_scheduler.scheduler.utils.empty_observation()).drop(index=0) | ||
if "observationId" not in visits.columns and "ID" in visits.columns: | ||
visits.rename(columns={"ID": "observationId"}, inplace=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty_observation gives you an "observation" array, not a "visits" (MAF) array .. maybe just run empty_observation through schema converter so all the columns match what you expect? Or maybe it doesn't matter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At present it doesn't matter, but you are correct that using SchemaConverter.obs2opsim will get it right, whereas what's there now will not. Fixing it now.
cea1c1d
to
b7e152d
Compare
|
No description provided.