From 5360c401b2722da73adf6c01b92dd35c1dc2a9b6 Mon Sep 17 00:00:00 2001 From: ezhu Date: Fri, 11 Sep 2020 02:35:31 -0400 Subject: [PATCH 1/2] lexsort multiindex --- .idea/misc.xml | 10 ++++++++++ .idea/modules.xml | 8 ++++++++ .idea/py-motmetrics.iml | 11 +++++++++++ .idea/vcs.xml | 6 ++++++ .idea/workspace.xml | 16 ++++++++++++++++ motmetrics/mot.py | 2 ++ 6 files changed, 53 insertions(+) create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/py-motmetrics.iml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..9764d752 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..4e66e01d --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/py-motmetrics.iml b/.idea/py-motmetrics.iml new file mode 100644 index 00000000..67116063 --- /dev/null +++ b/.idea/py-motmetrics.iml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..94a25f7f --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 00000000..0b5c8307 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/motmetrics/mot.py b/motmetrics/mot.py index a6bf0e76..aea36c87 100644 --- a/motmetrics/mot.py +++ b/motmetrics/mot.py @@ -340,6 +340,7 @@ def new_event_dataframe(): ]), index=idx ) + df.sort_index(level=_INDEX_FIELDS) return df @staticmethod @@ -373,6 +374,7 @@ def new_event_dataframe_with_data(indices, events): names=_INDEX_FIELDS) df = pd.concat(series, axis=1) df.index = idx + df.sort_index(level=_INDEX_FIELDS) return df @staticmethod From bf3902a479f932a32d0c1e7e2c31424622e7b981 Mon Sep 17 00:00:00 2001 From: ezhu Date: Fri, 11 Sep 2020 02:36:32 -0400 Subject: [PATCH 2/2] remove pycharm files --- .idea/misc.xml | 10 ---------- .idea/modules.xml | 8 -------- .idea/py-motmetrics.iml | 11 ----------- .idea/vcs.xml | 6 ------ .idea/workspace.xml | 16 ---------------- 5 files changed, 51 deletions(-) delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/py-motmetrics.iml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/workspace.xml diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 9764d752..00000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 4e66e01d..00000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/py-motmetrics.iml b/.idea/py-motmetrics.iml deleted file mode 100644 index 67116063..00000000 --- a/.idea/py-motmetrics.iml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7f..00000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 0b5c8307..00000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file