blueetl.converters.convert_spikes¶
Convert a spikes file by generating synthetic circuit, simulation, and simulation campaign.
Functions
|
Read a CSV file containing the spikes, and write synthetic files to be used with BlueETL. |
Classes
|
Statistics on the imported spikes. |
|
Output paths. |
- class blueetl.converters.convert_spikes.DataStats(rows: int, unique_ids: int, min_id: int, max_id: int, min_timestamp: float, max_timestamp: float)¶
Bases:
object
Statistics on the imported spikes.
- class blueetl.converters.convert_spikes.OutputPaths(base: Path)¶
Bases:
object
Output paths.
- property analysis_config_path: Path¶
Return the analysis_config_path.
- property circuit_config_path: Path¶
Return the circuit_config_path.
- property circuit_path: Path¶
Return the circuit_path.
- mkdirs()¶
Create the directories.
- property node_sets_path: Path¶
Return the node_sets_path.
- property nodes_path: Path¶
Return the nodes_path.
- property simulation_campaign_config_path: Path¶
Return the simulation_campaign_config_path.
- property simulation_config_path: Path¶
Return the simulation_config_path.
- property simulation_path: Path¶
Return the simulation_path.
- property spikes_path: Path¶
Return the spikes_path.
- blueetl.converters.convert_spikes.main(input_file: Path, output_dir: Path, node_population: str) None ¶
Read a CSV file containing the spikes, and write synthetic files to be used with BlueETL.
Expected output files:
├── analysis_config.yaml ├── circuit │ ├── circuit_config.json │ ├── node_sets.json │ └── synthetic_nodes.h5 ├── simulation │ ├── simulation_config.json │ └── synthetic_spikes.h5 └── simulation_campaign_config.json