We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5022aff commit 0fa3632Copy full SHA for 0fa3632
python/lsst/analysis/tools/actions/plot/plotUtils.py
@@ -27,6 +27,7 @@
27
import matplotlib
28
import matplotlib.pyplot as plt
29
import numpy as np
30
+import pandas as pd
31
from lsst.geom import Box2D, SpherePoint, degrees
32
from lsst.pex.config import Config, Field
33
from matplotlib import colors
@@ -371,7 +372,11 @@ def sortAllArrays(arrsToSort, sortArrayIndex=0):
371
372
"""
373
ids = extremaSort(arrsToSort[sortArrayIndex])
374
for i, arr in enumerate(arrsToSort):
- arrsToSort[i] = arr[ids]
375
+ if isinstance(arr, pd.Series):
376
+ arrsToSort[i] = arr.iloc[ids]
377
+ else:
378
+ arrsToSort[i] = arr[ids]
379
+
380
return arrsToSort
381
382
0 commit comments