Example #1
0
def main(config_file):
    configure = pointnet.Config.from_json(config_file)
    configure.build_env()

    network = pointnet.PointNetwork.from_config(configure)
    sim = pointnet.PointSimulator.from_config(configure, network)
    sim.run()

    plot_raster(config_file='simulation_config.json', group_by='pop_name')
Example #2
0
def main(spikes_file_path, with_histogram, population, group_by, title,
         bionet_config_file_path):
    """
    Generates spike raster plot from L4 simulation output.
    :param spikes_file_path: str (path)
    :param with_histogram: bool
    :param population: str
    :param group_by: str
    :param bionet_config_file_path: str (path)
    """
    plot_raster(config_file=bionet_config_file_path,
                population=population,
                with_histogram=with_histogram,
                times=None,
                title=title,
                show=True,
                group_by=group_by,
                spikes_file=spikes_file_path)
Example #3
0
import matplotlib.pyplot as plt

from bmtk.analyzer.compartment import plot_traces
from bmtk.analyzer.spike_trains import plot_raster, plot_rates_boxplot

# Setting show to False so we can display all the plots at the same time
plot_raster(config_file='config.json', group_by='pop_name', show=False)
plot_rates_boxplot(config_file='config.json', group_by='pop_name', show=False)

plot_traces(config_file='config.json',
            report_name='membrane_potential',
            group_by='pop_name',
            times=(0.0, 200.0),
            show=False)

plt.show()
Example #4
0
from bmtk.analyzer.spike_trains import plot_raster, plot_rates

plot_raster(config_file='simulation_config.json')
Example #5
0
from bmtk.analyzer.spike_trains import plot_raster


plot_raster(config_file='config.json')

Example #6
0
from bmtk.analyzer.spike_trains import plot_raster

plot_raster(config_file='simulation_config.json', show=True)
Example #7
0
import matplotlib.pyplot as plt

from bmtk.analyzer.spike_trains import plot_raster, plot_rates


plot_raster(config_file='config.json', title='Raster', show=False)
plot_rates(config_file='config.json', title='Rates', show=False)
plt.show()
Example #8
0
import matplotlib.pyplot as plt

from bmtk.analyzer.spike_trains import plot_raster, plot_rates_boxplot

plot_raster(config_file='sim_ch04/simulation_config.json',
            group_by='pop_name',
            show=False)
plot_rates_boxplot(config_file='sim_ch04/simulation_config.json',
                   group_by='pop_name',
                   show=False)
plt.show()
Example #9
0
def plot_rast(config_file):
    _ = plot_raster(config_file=config_file)