コード例 #1
0
"""

"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS']= os.path.join('/', 'usr', 'local', 'neurospaces', 'models', 'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy 


scheduler = SSPy(verbose=True)

try:
    
    scheduler.Load("./yaml/pool1_feedback1.yml")

except Exception, e:

    print e


scheduler.Run(finish=True)

print "Done!"

コード例 #2
0
ファイル: service_1.py プロジェクト: HugoCornelis/sspy
#! /usr/bin/env python
"""

"""
import pdb
import os

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy 


scheduler = SSPy(verbose=True,
                 service_directory="tests/python/test_services/")

try:
    
    scheduler.Load("./tests/yaml/service_1.yml")

except Exception, e:

    print e


services = scheduler.GetLoadedServices()

services.sort()

for s in services:
コード例 #3
0
"""
import pdb
import os
import sys

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=False)

my_model_container = None
#
# Create a model container service and load an ndf file
#

my_model_container = scheduler.CreateService(name="My Model Container",
                                             type="model_container")

my_model_container.Load('tests/cells/purk_test.ndf')

my_model_container.SetParameter('/purk_test/segments/soma', 'INJECT', 2e-09)

inject_value = scheduler.GetParameter('/purk_test/segments/soma', 'INJECT')
コード例 #4
0
"""
import pdb
import os
import sys

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=True)

my_model_container = None
#
# Create a model container service and load an ndf file
#

my_model_container = scheduler.CreateService(name="My Model Container",
                                             type="model_container")

my_model_container.Load('tests/cells/singlep.ndf')

#
# Must create solver.
#
my_heccer = scheduler.CreateSolver('My solver', 'heccer')
コード例 #5
0
"""

"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS']= os.path.join('/', 'usr', 'local', 'neurospaces', 'models', 'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy 


scheduler = SSPy(verbose=True)

try:
    
    scheduler.Load("./tests/yaml/purk_test_soma.yml")

except Exception, e:

    print "Error while loading schedule file: %s" % e



scheduler.Run(finish=True)


コード例 #6
0
ファイル: purk_test_2_api.py プロジェクト: HugoCornelis/sspy
"""
import pdb
import os
import sys

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=True)

my_model_container = None
#
# Create a model container service and load an ndf file
#

my_model_container = scheduler.CreateService(name="My Model Container",
                                             type="model_container")

my_model_container.Load('tests/cells/purk_test.ndf')

my_model_container.SetParameter('/purk_test/segments/soma', 'INJECT', 2e-09)

#
# Must create solver.
コード例 #7
0
"""

"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS']= os.path.join('/', 'usr', 'local', 'neurospaces', 'models', 'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy 


scheduler = SSPy(verbose=True)

my_model_container = None
#
# Create a model container service and load an ndf file
#
    
my_model_container = scheduler.CreateService(name="My Model Container",
                                             type="model_container")

my_model_container.Load('tests/cells/singlep.ndf')




#
コード例 #8
0
"""

"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS']= os.path.join('/', 'usr', 'local', 'neurospaces', 'models', 'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy 


scheduler = SSPy(verbose=True)

try:
    
    scheduler.Load("./yaml/purkinje/edsjb1994-endogenous.yml")

except Exception, e:

    print e


scheduler.Run()

print "Done!"

コード例 #9
0
#! /usr/bin/env python
"""

"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy()

try:

    scheduler.Load("./yaml/springmass3.yml")

except Exception, e:

    print e

scheduler.Run()

print "Done!"
コード例 #10
0
#! /usr/bin/env python
"""

"""
import pdb
import os

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=True)

try:

    scheduler.Load("./yaml/purkinje/edsjb1994-perfectclamp.yml")

except Exception, e:

    print "Error while loading schedule file: %s" % e

scheduler.Run()

print "Done!"
コード例 #11
0
ファイル: save_1.py プロジェクト: HugoCornelis/sspy
"""

"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS']= os.path.join('/', 'usr', 'local', 'neurospaces', 'models', 'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy 


scheduler = SSPy(verbose=False)

try:
    
    scheduler.Load("./yaml/purk_test.yml")

except Exception, e:

    print "Error while loading schedule file: %s" % e


from sspy.save import Save

sspy_save = Save(scheduler)

sspy_save.SaveToFile()
コード例 #12
0
"""
import pdb
import os
import sys

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=True)

my_model_container = None
#
# Create a model container service and load an ndf file
#

my_model_container = scheduler.CreateService(name="My Model Container",
                                             type="model_container")

my_model_container.Load('tests/cells/purk_test.ndf')

my_model_container.SetParameter('/purk_test/segments/soma', 'INJECT', 2e-09)

#
# Must create solver.
コード例 #13
0
#! /usr/bin/env python
"""

"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy()

try:

    scheduler.Load("./tests/yaml/singlea-naf2-aggregator.yml")

except Exception, e:

    print e

scheduler.Run()
コード例 #14
0
#! /usr/bin/env python
"""

"""
import pdb
import os

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=True,
                 solver_directory="tests/python/test_solvers/",
                 service_directory="tests/python/test_services/")

try:

    scheduler.Load("./tests/yaml/solver_1.yml")

except Exception, e:

    print e

scheduler.Dump()
コード例 #15
0
"""
import pdb
import os
import sys

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=True)

my_model_container = None
#
# Create a model container service and load an ndf file
#

my_model_container = scheduler.CreateService(name="My Model Container",
                                             type="model_container")

# we go one layer lower below the plugin layer so that we
# can do work on the model container core.
my_mc_object = my_model_container.GetObject()

#pdb.set_trace()
my_mc_object.NDFLoadLibrary('cells/RScell-nolib2.ndf', 'rscell')
コード例 #16
0
#! /usr/bin/env python
"""

"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS']= os.path.join('/', 'usr', 'local', 'neurospaces', 'models', 'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy 


scheduler = SSPy(verbose=True)

try:
    
    scheduler.Load("./yaml/heccer/singlep.yml")

except Exception, e:

    print e


scheduler.Run(finish=True)
コード例 #17
0
sys.path.append(
    os.path.join(os.environ['HOME'],
                 'neurospaces_project/sspy/source/snapshots/0/tests/python'))

# The location of model files to be loaded
os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=True)

my_model_container = None

#
# Create a model container service and load an ndf file
#
my_model_container = scheduler.CreateService(name="My Model Container",
                                             type="model_container")

my_model_container.Load('chemesis/cal1.ndf')

#
# Must create solver.
#
my_chemesis3 = scheduler.CreateSolver('My Chemesis3', 'chemesis3')
コード例 #18
0
ファイル: pulsegen_freerun.py プロジェクト: HugoCornelis/sspy
#! /usr/bin/env python
"""

"""
import pdb
import os

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy 


scheduler = SSPy(verbose=True)

try:
    
    scheduler.Load("./yaml/pulsegen_freerun.yml")

except Exception, e:

    print "Error while loading schedule file: %s" % e



scheduler.Run(finish=True)


コード例 #19
0
ファイル: set_parameter_1.py プロジェクト: HugoCornelis/sspy
"""
import pdb
import os
import sys

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=True)

my_model_container = None
#
# Create a model container service and load an ndf file
#

my_model_container = scheduler.CreateService(name="My Model Container",
                                             type="model_container")

my_model_container.Load('tests/cells/purk_test.ndf')

my_model_container.SetParameter('/purk_test/segments/soma', 'INJECT', 2e-09)

#
# Must create solver.
コード例 #20
0
#! /usr/bin/env python
"""

"""
import pdb
import os

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=True)

try:

    scheduler.Load("./yaml/output1.yml")

except Exception, e:

    print e

scheduler.Dump()
コード例 #21
0
sys.path.append(
    os.path.join(os.environ['HOME'],
                 'neurospaces_project/sspy/source/snapshots/0/tests/python'))

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=True)

my_model_container = None
#
# Create a model container service and load an ndf file
#

my_model_container = scheduler.CreateService(name="My Model Container",
                                             type="model_container")

my_model_container.Load('cells/purkinje/edsjb1994.ndf')

#
# Must create solver.
#
my_heccer = scheduler.CreateSolver('My solver', 'heccer')
コード例 #22
0
#! /usr/bin/env python
"""

"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=True)

try:

    scheduler.Load("./yaml/pool1_contributors2.yml")

except Exception, e:

    print e

scheduler.Run(finish=True)

print "Done!"
コード例 #23
0
#! /usr/bin/env python
"""

"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS']= os.path.join('/', 'usr', 'local', 'neurospaces', 'models', 'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy 


scheduler = SSPy(verbose=True)

try:
    
    scheduler.Load("./yaml/purk_test_segment.yml")

except Exception, e:

    print "Error while loading schedule file: %s" % e


scheduler.Run(finish=True)

print "Done!"
コード例 #24
0
"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=False)

try:

    scheduler.Load("./yaml/output4.yml")

except Exception, e:

    print "Error while loading schedule file: %s" % e

from sspy.save import Save

sspy_save = Save(scheduler)

sspy_save.SaveToFile()
コード例 #25
0
ファイル: element_list.py プロジェクト: HugoCornelis/sspy
"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=False)

try:

    scheduler.Load("./yaml/purk_test.yml")

except Exception, e:

    print "Error while loading schedule file: %s" % e

elements = scheduler.GetElements()

print "Top level child is: %s" % elements[0]
print "Number of elements is %s" % len(elements)

coords = scheduler.GetCoordinates()
コード例 #26
0
"""

"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS']= os.path.join('/', 'usr', 'local', 'neurospaces', 'models', 'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy 


scheduler = SSPy(verbose=True)

try:
    
    scheduler.Load("./yaml/addressing_aggregator1.yml")

except Exception, e:

    print e


scheduler.Run()

print "Done!"

コード例 #27
0
ファイル: output1.py プロジェクト: HugoCornelis/sspy
#! /usr/bin/env python
"""

"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=True)

try:

    scheduler.Load("./yaml/output1.yml")

except Exception, e:

    print e

scheduler.Run(finish=True)

print "Done!"
コード例 #28
0
"""
import pdb
import os
import sys

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()
#pdb.set_trace()
from sspy import SSPy

scheduler = SSPy(verbose=True)

my_model_container = None
#
# Create a model container service and load an ndf file
#

my_model_container = scheduler.CreateService(name="My Model Container",
                                             type="model_container")

my_model_container.Load('tests/cells/singlep.ndf')

#
# Must create solver.
#
my_heccer = scheduler.CreateSolver('My solver', 'heccer')
コード例 #29
0
"""
import pdb
import os

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=True)

my_model_container = None
#
# Create a model container service and load an ndf file
#

my_model_container = scheduler.CreateService(name="My Model Container",
                                             type="model_container")

my_model_container.Load('tests/cells/singlep.ndf')

#
# Must create solver.
#
my_heccer = scheduler.CreateSolver('My solver', 'heccer')
コード例 #30
0
"""
import pdb
import os
import sys

os.environ['NEUROSPACES_NMC_MODELS'] = os.path.join('/', 'usr', 'local',
                                                    'neurospaces', 'models',
                                                    'library')

from test_library import add_sspy_path

add_sspy_path()

from sspy import SSPy

scheduler = SSPy(verbose=False)

my_model_container = None
#
# Create a model container service and load an ndf file
#

my_model_container = scheduler.CreateService(name="My Model Container",
                                             type="model_container")

my_model_container.Load('tests/cells/purk_test.ndf')

my_model_container.SetParameter('/purk_test/segments/soma', 'INJECT', 2e-09)

element = '/purk_test/segments/soma'