Skip to content

Commit

Permalink
fix: ascending subject ID caused dataframe to be upside down
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Dec 10, 2024
1 parent 56ad53a commit b465809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aind_qc_portal/projects/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _get_assets(self):
self._df["QC view"] = self._df.apply(lambda row: format_link(row["qc_link"]), axis=1)
self._df["Operator"] = self._df["operator"].apply(lambda x: ", ".join(x))
self._df.sort_values(by="timestamp", ascending=True, inplace=True)
self._df.sort_values(by="subject_id", ascending=True, inplace=True)
self._df.sort_values(by="subject_id", ascending=False, inplace=True)

def filtered_data(self):
if self.subject_filter:
Expand Down

0 comments on commit b465809

Please sign in to comment.