-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/shixnya/bmtk into develop
- Loading branch information
Showing
60 changed files
with
53,814 additions
and
28,965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+71.9 KB
...s/source/_static/_tutorial_images/Responses_to_diff_scales_and_orientations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+71.9 KB
...tutorial/_static/_tutorial_images/Responses_to_diff_scales_and_orientations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"manifest": { | ||
"$BASE_DIR": "${configdir}", | ||
"$NETWORK_DIR": "$BASE_DIR/network", | ||
"$COMPONENTS_DIR": "$BASE_DIR/components" | ||
}, | ||
"components": { | ||
"filter_models_dir": "$COMPONENTS_DIR/filter_models" | ||
}, | ||
"networks": { | ||
"nodes": [ | ||
{ | ||
"nodes_file": "$NETWORK_DIR/aud_nodes.h5", | ||
"node_types_file": "$NETWORK_DIR/aud_node_types.csv" | ||
} | ||
], | ||
"edges": [], | ||
"gap_juncs": [] | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
docs/tutorial/sim_aud/components/filter_models/AUD_filt_partial.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"b_t": 7, | ||
"order_t": 3, | ||
"psi": "-pi/2", | ||
"amplitude": 150, | ||
"direction": 0, | ||
"sigma_f": 1.0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"network": "./circuit_config.json", | ||
"simulation": "./simulation_config.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"biophysical_nodes": { | ||
"model_type": "biophysical" | ||
}, | ||
"point_nodes": { | ||
"model_type": "point_process" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Simulates an example network of 14 cell receiving two kinds of exernal input as defined in configuration file""" | ||
|
||
import os, sys | ||
from bmtk.simulator import filternet | ||
|
||
|
||
def run(config_file): | ||
config = filternet.Config.from_json(config_file) | ||
config.build_env() | ||
|
||
net = filternet.FilterNetwork.from_config(config) | ||
sim = filternet.FilterSimulator.from_config(config, net) | ||
sim.run() | ||
|
||
|
||
if __name__ == '__main__': | ||
if __file__ != sys.argv[-1]: | ||
run(sys.argv[-1]) | ||
else: | ||
run('${CONFIG}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"manifest": { | ||
"$BASE_DIR": "${configdir}", | ||
"$OUTPUT_DIR": "$BASE_DIR/output" | ||
}, | ||
"target_simulator": "LGNModel", | ||
"run": { | ||
"tstart": 0.0, | ||
"tstop": 3000.0, | ||
"dt": 0.001 | ||
}, | ||
"inputs": { | ||
"movie": { | ||
"input_type": "audio", | ||
"module": "wav_file", | ||
"data_file": "$BASE_DIR/audio/sa1.wav", | ||
"normalize": "full", | ||
"interp_to_freq": true, | ||
"padding": "edge" | ||
} | ||
}, | ||
"output": { | ||
"log_file": "log.txt", | ||
"output_dir": "$OUTPUT_DIR", | ||
"spikes_file": "spikes.h5", | ||
"rates_file_csv": "rates.csv", | ||
"spikes_file_csv": "spikes.csv", | ||
"spikes_file_h5": "spikes.h5" | ||
}, | ||
"reports": {}, | ||
"node_sets_file": "$BASE_DIR/node_sets.json" | ||
} |
Oops, something went wrong.