Skip to content

Commit fca9216

Browse files
committed
downgrade pandas=1.53, hdmf=3.4.7, pynwb=2.3.3
1 parent 88e3d7e commit fca9216

File tree

5 files changed

+238
-1927
lines changed

5 files changed

+238
-1927
lines changed

allensdk/core/mouse_connectivity_cache.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,11 @@ def rank_structures(
572572
:, output_keys
573573
]
574574

575-
records = this_experiment_unionizes.to_dict("record")
575+
this_experiment_unionizes = unionizes[unionizes['experiment_id'] == eid]
576+
this_experiment_unionizes = this_experiment_unionizes.sort_values(by=rank_on, ascending=False)
577+
this_experiment_unionizes = this_experiment_unionizes.loc[:, output_keys]
578+
579+
records = this_experiment_unionizes.to_dict('records')
576580
if len(records) > n:
577581
records = records[:n]
578582
results.append(records)

0 commit comments

Comments
 (0)