Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions resources/generate_cambridgeneurotech_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ def generate_all_probes(probe_tables_path, output_folder):

if np.all(pd.isna(contacts["contact_sides"])):
contacts.drop(columns="contact_sides", inplace=True)
else:
print(f"Double sided probe: {sheet_name}")

if np.all(pd.isna(contacts["shank_ids"])):
contacts.drop(columns="shank_ids", inplace=True)

if "z" in contacts.columns:
contacts.drop(columns=["z"], inplace=True)
Expand All @@ -172,8 +173,9 @@ def generate_all_probes(probe_tables_path, output_folder):
print(f"Problem loading {sheet_name}: {e}")
sheets_with_issues.append(sheet_name)

print("Wrong contours:\n\n", wrong_contours)
print("Sheets with issues:\n\n", sheets_with_issues)
print(f"\nREPORT for CambridgeNeurotech probe library generation\n")
print(f"Probes with wrong contours: {len(wrong_contours)}\n{wrong_contours}")
print(f"Probes failed to load: {len(sheets_with_issues)}\n{sheets_with_issues}")


if __name__ == "__main__":
Expand Down
Loading