|
7 | 7 | import gc |
8 | 8 | from decimal import Decimal |
9 | 9 | import pandas as pd |
10 | | -from typing import Any |
11 | 10 |
|
12 | 11 | from element_interface.utils import find_root_directory, find_full_path, dict_to_uuid |
13 | 12 | from .readers import spikeglx, kilosort, openephys |
@@ -1417,14 +1416,12 @@ def get_neuropixels_channel2electrode_map( |
1417 | 1416 | return channel2electrode_map |
1418 | 1417 |
|
1419 | 1418 |
|
1420 | | -def generate_electrode_config( |
1421 | | - probe_type: str, electrode_keys: list[dict[str, Any]] |
1422 | | -) -> dict: |
| 1419 | +def generate_electrode_config(probe_type: str, electrode_keys: list) -> dict: |
1423 | 1420 | """Generate and insert new ElectrodeConfig |
1424 | 1421 |
|
1425 | 1422 | Args: |
1426 | 1423 | probe_type (str): probe type (e.g. neuropixels 2.0 - SS) |
1427 | | - electrode_keys (list[dict[str, Any]]): list of keys of the probe.ProbeType.Electrode table |
| 1424 | + electrode_keys (list): list of keys of the probe.ProbeType.Electrode table |
1428 | 1425 |
|
1429 | 1426 | Returns: |
1430 | 1427 | dict: representing a key of the probe.ElectrodeConfig table |
@@ -1463,8 +1460,8 @@ def generate_electrode_config( |
1463 | 1460 | return electrode_config_key |
1464 | 1461 |
|
1465 | 1462 |
|
1466 | | -def get_recording_channels_details(ephys_recording_key: dict[str, Any]) -> np.array: |
1467 | | - """Get details of recording channels for a givenn recording.""" |
| 1463 | +def get_recording_channels_details(ephys_recording_key: dict) -> np.array: |
| 1464 | + """Get details of recording channels for a given recording.""" |
1468 | 1465 | channels_details = {} |
1469 | 1466 |
|
1470 | 1467 | acq_software, sample_rate = (EphysRecording & ephys_recording_key).fetch1( |
|
0 commit comments