-
Notifications
You must be signed in to change notification settings - Fork 37
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
U/yoachim/fo plot fix #417
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c1647da
switch for old ddf coords
yoachim 7e8143f
swap note to scheduler_note
yoachim c367971
remove dither stackers
yoachim 71f3610
convert FOPlot to oo-interface so it returns fig properly
yoachim f99938d
update np.NaN to np.nan
yoachim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,7 +144,7 @@ def glanceBatch( | |
bundle_list.append(bundle) | ||
|
||
# alt az of long gaps | ||
sql = "note = 'long'" | ||
sql = "scheduler_note = 'long'" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sigh, I see your point about scheduler_note vs note being embedded in many places. |
||
metric = metrics.CountMetric(colmap["mjd"], metric_name="Nvisits long") | ||
bundle = metric_bundles.MetricBundle( | ||
metric, | ||
|
@@ -156,7 +156,7 @@ def glanceBatch( | |
) | ||
bundle_list.append(bundle) | ||
|
||
sql = "note like 'blob_long%'" | ||
sql = "scheduler_note like 'blob_long%'" | ||
metric = metrics.CountMetric(colmap["mjd"], metric_name="Nvisits blob long") | ||
bundle = metric_bundles.MetricBundle( | ||
metric, | ||
|
@@ -168,7 +168,7 @@ def glanceBatch( | |
) | ||
bundle_list.append(bundle) | ||
|
||
sql = "note like '%neo%' or note like '%near_sun%'" | ||
sql = "scheduler_note like '%neo%' or scheduler_note like '%near_sun%'" | ||
metric = metrics.CountMetric(colmap["mjd"], metric_name="Nvisits twilight near sun") | ||
bundle = metric_bundles.MetricBundle( | ||
metric, | ||
|
@@ -182,7 +182,7 @@ def glanceBatch( | |
|
||
# alt,az pf ToO | ||
|
||
sql = "note like 'ToO%'" | ||
sql = "scheduler_note like 'ToO%'" | ||
metric = metrics.CountMetric(colmap["mjd"], metric_name="Nvisits long") | ||
bundle = metric_bundles.MetricBundle( | ||
metric, | ||
|
@@ -277,7 +277,7 @@ def glanceBatch( | |
bundle_list.append(bundle) | ||
|
||
# Make a cumulative plot of a WFD spot | ||
sql = "note not like '%NEO%' and note not like '%near_sun%'" | ||
sql = "scheduler_note not like '%NEO%' and scheduler_note not like '%near_sun%'" | ||
uslicer = slicers.UserPointsSlicer(ra=0, dec=-20) | ||
metric = metrics.CumulativeMetric() | ||
metricb = metric_bundles.MetricBundle( | ||
|
@@ -362,16 +362,16 @@ def glanceBatch( | |
) | ||
bundle_list.append(bundle) | ||
|
||
# stats from the note column | ||
if "note" in colmap.keys(): | ||
# stats from the scheduler_note column | ||
if "scheduler_note" in colmap.keys(): | ||
displayDict = {"group": "Basic Stats", "subgroup": "Percent stats"} | ||
metric = metrics.StringCountMetric(col=colmap["note"], percent=True, metric_name="Percents") | ||
metric = metrics.StringCountMetric(col=colmap["scheduler_note"], percent=True, metric_name="Percents") | ||
sql = "" | ||
slicer = slicers.UniSlicer() | ||
bundle = metric_bundles.MetricBundle(metric, slicer, sql, display_dict=displayDict) | ||
bundle_list.append(bundle) | ||
displayDict["subgroup"] = "Count Stats" | ||
metric = metrics.StringCountMetric(col=colmap["note"], metric_name="Counts") | ||
metric = metrics.StringCountMetric(col=colmap["scheduler_note"], metric_name="Counts") | ||
bundle = metric_bundles.MetricBundle(metric, slicer, sql, display_dict=displayDict) | ||
bundle_list.append(bundle) | ||
|
||
|
@@ -381,7 +381,7 @@ def glanceBatch( | |
displayDict["subgroup"] = "" | ||
for ddf in ddf_surveys: | ||
label = ddf.replace("DD:", "") | ||
sql = 'note like "%s%%"' % ("DD:" + label) | ||
sql = 'scheduler_note like "%s%%"' % ("DD:" + label) | ||
slicer = slicers.UniSlicer() | ||
metric = metrics.CumulativeMetric() | ||
metricb = metric_bundles.MetricBundle( | ||
|
@@ -515,7 +515,7 @@ def glanceBatch( | |
lat_lon_deg=colmap["raDecDeg"], | ||
) | ||
for filtername in filternames: | ||
sql = "filter='%s' and note like 'ToO%%'" % filtername | ||
sql = "filter='%s' and scheduler_note like 'ToO%%'" % filtername | ||
metric = metrics.CountMetric(col=colmap["mjd"], metric_name="N ToO") | ||
bundle = metric_bundles.MetricBundle( | ||
metric, | ||
|
@@ -528,7 +528,9 @@ def glanceBatch( | |
) | ||
bundle_list.append(bundle) | ||
|
||
too_sqls = ["note like 'ToO, %" + "t%i'" % hour for hour in [0, 1, 2, 4, 24, 48]] + ["note like 'ToO, %'"] | ||
too_sqls = ["scheduler_note like 'ToO, %" + "t%i'" % hour for hour in [0, 1, 2, 4, 24, 48]] + [ | ||
"scheduler_note like 'ToO, %'" | ||
] | ||
slicer = slicers.UniSlicer() | ||
for sql in too_sqls: | ||
metric = metrics.CountMetric(col="night") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This one we could use "target_name", but scheduler_note works too.