Skip to content

Commit

Permalink
Update histology.py
Browse files Browse the repository at this point in the history
For neuropixels 1 in herbs probe has no index in filename.
  • Loading branch information
KonradDanielewski authored Jan 17, 2024
1 parent 9d4f008 commit a161bb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion seba/herbs_histology/histology.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ def get_brain_regions(data_folder:str, histology_folder:str, neuropixels_20=True
all_shanks = []

for shank in shanks:
obj = pd.read_pickle(histology + f"\\probe {shank}.pkl")
if neuropixels_20:
obj = pd.read_pickle(histology + f"\\probe {shank}.pkl")
else:
obj = pd.read_pickle(histology + f"\\probe.pkl")
keys = pd.Series(obj["data"]["region_label"]).unique()
values = pd.Series(obj["data"]["label_name"]).unique()

Expand Down

0 comments on commit a161bb4

Please sign in to comment.