コード例 #1
0
    else:
        

        simulator  = 'jNeuroML_NEURON'

        cont = NeuroMLController('RunOnePyr', 
                                 neuroml_file,
                                 'network',
                                 sim_time, 
                                 0.01, 
                                 simulator,
                                 generate_dir = './temp')

        sim_vars = OrderedDict(known_target_values)
        
        t, v = cont.run_individual(sim_vars, show=(not nogui))
        print("Have run individual instance...")

        peak_threshold = 0

        analysis_var = {'peak_delta':     0,
                        'baseline':       0,
                        'dvdt_threshold': 0, 
                        'peak_threshold': peak_threshold}

        example_run_analysis=analysis.NetworkAnalysis(v,
                                                   t,
                                                   analysis_var,
                                                   start_analysis=0,
                                                   end_analysis=sim_time)
コード例 #2
0
ファイル: tuneGrc.py プロジェクト: pgleeson/testtune
        1.0808061342038033
    }

    sim_vars = OrderedDict(vars)
    #sim_vars = OrderedDict([])

    if '-one' in sys.argv:

        simulator = 'jNeuroML_NEURON'
        #simulator  = 'jNeuroML'

        cont = NeuroMLController('TestGran', 'models/GranuleCell.net.nml',
                                 'network_GranuleCell', sim_time, dt,
                                 simulator)

        t, v = cont.run_individual(sim_vars, show=False)

        analysis = utils.simple_iclamp_analysis(v['Gran/0/Granule_98/v'],
                                                t,
                                                plot=True)

    elif '-mone' in sys.argv:

        simulator = 'jNeuroML_NEURON'
        #simulator  = 'jNeuroML'
        sim_time = 700

        cont = NeuroMLController('TestGranNet',
                                 'models/GranuleCellMulti.net.nml',
                                 'network_GranuleCell_multi', sim_time, dt,
                                 simulator)
コード例 #3
0
ファイル: tunePyr.py プロジェクト: RokasSt/pyNeuroML
            num_selected=10,
            num_offspring=10,
            mutation_rate=0.5,
            num_elites=3,
            seed=12345,
            simulator=simulator,
            nogui=nogui,
            known_target_values=known_target_values,
        )

    else:

        simulator = "jNeuroML_NEURON"

        cont = NeuroMLController("RunOnePyr", neuroml_file, "network", sim_time, 0.01, simulator, generate_dir="./temp")

        sim_vars = OrderedDict(known_target_values)

        t, v = cont.run_individual(sim_vars, show=(not nogui))
        print("Have run individual instance...")

        peak_threshold = 0

        analysis_var = {"peak_delta": 0, "baseline": 0, "dvdt_threshold": 0, "peak_threshold": peak_threshold}

        example_run_analysis = analysis.NetworkAnalysis(v, t, analysis_var, start_analysis=0, end_analysis=sim_time)

        analysis = example_run_analysis.analyse()

        pp.pprint(analysis)
コード例 #4
0
ファイル: tuneGrc.py プロジェクト: pgleeson/testtune
 sim_vars = OrderedDict(vars)
 #sim_vars = OrderedDict([])
 
 if '-one' in sys.argv:
     
     simulator  = 'jNeuroML_NEURON'
     #simulator  = 'jNeuroML'
     
     cont = NeuroMLController('TestGran', 
                              'models/GranuleCell.net.nml',
                              'network_GranuleCell',
                              sim_time, 
                              dt, 
                              simulator)
     
     t, v = cont.run_individual(sim_vars, show=False)
     
     analysis = utils.simple_iclamp_analysis(v['Gran/0/Granule_98/v'], t, plot=True)
     
 elif '-mone' in sys.argv:
     
     simulator  = 'jNeuroML_NEURON'
     #simulator  = 'jNeuroML'
     sim_time =         700
     
     cont = NeuroMLController('TestGranNet', 
                              'models/GranuleCellMulti.net.nml',
                              'network_GranuleCell_multi',
                              sim_time, 
                              dt, 
                              simulator)