本文整理汇总了Python中mozaik.getMozaikLogger函数的典型用法代码示例。如果您正苦于以下问题:Python getMozaikLogger函数的具体用法?Python getMozaikLogger怎么用?Python getMozaikLogger使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getMozaikLogger函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: Sheet
"""
import numpy
import mozaik
from mozaik.core import BaseComponent
from mozaik import load_component
from mozaik.tools.distribution_parametrization import PyNNDistribution
from parameters import ParameterSet, UniformDist
from pyNN import space
from pyNN.errors import NothingToWriteError
from string import Template
from neo.core.spiketrain import SpikeTrain
import quantities as pq
logger = mozaik.getMozaikLogger()
class Sheet(BaseComponent):
"""
Sheet is an abstraction of a 2D continuouse sheet of neurons, roughly
corresponding to the PyNN Population class with the added spatial structure.
The spatial position of all cells is kept within the PyNN Population object.
Each sheet is assumed to be centered around (0,0) origin, corresponding to
whatever excentricity the model is looking at. The internal representation
of space is degrees of visual field. Thus x,y coordinates of a cell in all
sheets correspond to the degrees of visual field this cell is away from the
origin. However, the sheet and derived classes/methods are supposed to
accept parameters in units that are most natural for the given parameter and
recalculate these into the internal degrees of visual field representation.
开发者ID:JoelChavas,项目名称:mozaik,代码行数:30,代码来源:__init__.py
示例2: VogelsAbbott
import matplotlib
import time
import pylab
from mozaik.experiment import *
from pyNN import nest as sim
from model import VogelsAbbott
from mozaik.controller import run_experiments, setup_experiments, setup_logging
from mozaik.framework.population_selector import RCRandomPercentage
from mozaik.visualization.plotting import *
from mozaik.analysis.technical import NeuronAnnotationsToPerNeuronValues
from mozaik.storage.datastore import Hdf5DataStore,PickledDataStore
from NeuroTools.parameters import ParameterSet
from mozaik.storage.queries import *
import mozaik
logger = mozaik.getMozaikLogger("Mozaik")
if True:
params = setup_experiments('FFI',sim)
jens_model = VogelsAbbott(sim,params)
l4exc_kick = RCRandomPercentage(jens_model.sheets["V1_Exc_L4"],ParameterSet({'percentage': 20.0}))
l4inh_kick = RCRandomPercentage(jens_model.sheets["V1_Inh_L4"],ParameterSet({'percentage': 20.0}))
experiment_list = [
#Lets kick the network up into activation
PoissonNetworkKick(jens_model,duration=70*7,sheet_list=["V1_Exc_L4","V1_Inh_L4"],recording_configuration_list=[l4exc_kick,l4inh_kick],lambda_list=[100,100]),
#Spontaneous Activity
NoStimulation(jens_model,duration=70*7),
]
data_store = run_experiments(jens_model,experiment_list)
#jens_model.connectors['V1L4ExcL4ExcConnection'].store_connections(data_store)
开发者ID:JoelChavas,项目名称:mozaik-contrib,代码行数:31,代码来源:newexec.py
注:本文中的mozaik.getMozaikLogger函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论