Skip to content

Commit

Permalink
Merge pull request #97 from lsst/tickets/PREOPS-5294
Browse files Browse the repository at this point in the history
tickets/PREOPS-5294: let plot_visit_skymaps work however the visits DF is indexed.
  • Loading branch information
ehneilsen authored Jul 22, 2024
2 parents ce13c2a + a9df1ef commit 757efb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schedview/plot/visitmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def plot_visit_skymaps(
)

for band in "ugrizy":
band_visits = visits.reset_index().loc[visits["filter"] == band, VISIT_COLUMNS].copy()
band_visits = visits.reset_index().loc[visits.reset_index()["filter"] == band, VISIT_COLUMNS].copy()

if len(band_visits) < 1:
continue
Expand Down

0 comments on commit 757efb0

Please sign in to comment.