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 ebfcfad commit e4a7092Copy full SHA for e4a7092
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
@@ -398,7 +399,11 @@ def sortAllArrays(arrsToSort, sortArrayIndex=0):
398
399
"""
400
ids = extremaSort(arrsToSort[sortArrayIndex])
401
for i, arr in enumerate(arrsToSort):
- arrsToSort[i] = arr[ids]
402
+ if isinstance(arr, pd.Series):
403
+ arrsToSort[i] = arr.iloc[ids]
404
+ else:
405
+ arrsToSort[i] = arr[ids]
406
+
407
return arrsToSort
408
409
0 commit comments