In [3]:
#/###################/#
# Global config
#

#ImportModules
import ShareYourSystem as SYS
import os
print(SYS.__file__)

"""
#style
from IPython import utils
from IPython.core.display import HTML,display
base = utils.path.get_ipython_dir()
styles = "<style>\n%s\n</style>" % (open('/Users/ledoux/Documents/Predinetwork/custom.css','r').read())
display(HTML(styles))

#SYS config
SYS.DebugPrintBool=False

#Backend plot config
%pylab inline
"""


ShareYourSystem/__init__.py
Out[3]:
'\n#style\nfrom IPython import utils\nfrom IPython.core.display import HTML,display\nbase = utils.path.get_ipython_dir()\nstyles = "<style>\n%s\n</style>" % (open(\'/Users/ledoux/Documents/Predinetwork/custom.css\',\'r\').read())\ndisplay(HTML(styles))\n\n#SYS config\nSYS.DebugPrintBool=False\n\n#Backend plot config\n%pylab inline\n'

SYS proposes an API that builds architectures of objects like a JSON interface.


In [1]:
#/###################/#
# Import modules
#

#ImportModules
import ShareYourSystem as SYS

#/###################/#
# Build a neural network model
#

#Define
MyLeaker=SYS.LeakerClass(
    ).mapSet(
        {
            '-Populations':{
                '|E':{
                    'LeakingUnitsInt':10,
                    'LeakingSymbolPrefixStr':'V',
                    '-Inputs':{
                        '|Rest':{
                            'LeakingWeigthVariable':'#scalar:-60*mV'
                        },
                        '|External':{
                            'LeakingWeigthVariable':'#scalar:11*mV'
                        }
                    },
                    'LeakingNoiseStdVariable':0.1,
                    'LeakingThresholdVariable':'#scalar:V>-50*mV',
                    'LeakingResetVariable':-70.,
                    '-Interactions':{
                        '|/':{
                            'BrianingDebugVariable':100,
                            'LeakingWeigthVariable':"#array",
                            'LeakingInteractionStr':"Spike"
                        }
                    },
                    'RecordingLabelVariable':[0,1]
                    #'BrianingDebugVariable':100
                }
            }
        }
    ).leak(
    )


                                                                                                        
                                                                                                        xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                                                                                                        ////////////////////////////////
                                                                                                        Leaker/__init__.py brianSample
                                                                                                        From Leaker/__init__.py brianSample | Brianer/__init__.py do_brian | Setter/__init__.py setAttrOrCall | Commander/__init__.py do_command | Commander/__init__.py do_command | Commander/__init__.py do_command | Commander/__init__.py do_command | Commander/__init__.py do_command | Commander/__init__.py do_command | Structurer/__init__.py do_structure | Leaker/__init__.py do_leak | <ipython-input-1-da07795dc750> <module> | core/interactiveshell.py run_code | core/interactiveshell.py run_ast_nodes | core/interactiveshell.py run_cell | zmq/ipkernel.py execute_request | zmq/ipkernel.py dispatch_shell | zmq/ipkernel.py dispatcher | minitornado/stack_context.py wrapped | eventloop/zmqstream.py _run_callback | eventloop/zmqstream.py _handle_recv | eventloop/zmqstream.py _handle_events | tornado/stack_context.py null_wrapper | tornado/ioloop.py start | eventloop/ioloop.py start | zmq/kernelapp.py start | zmq/kernelapp.py main
                                                                                                        ////////////////////////////////
                                                                                                        
                                                                                                        l.3924 : 
                                                                                                        *****
                                                                                                        I am with [('ManagementTagStr', 'Default'), ('ParentTagStr', '_Top_Populations_E_Traces_*V_Samples_Default'), ('StructureTagStr', 'Top_Populations_E_Traces_*V_Samples_Default'), ('ParentTeamTagStr', 'Samples'), ('ParentGrandManagementTagStr', '*V')], 4520747664 
                                                                                                        *****
                                                                                                        We brian sample leak here
                                                                                                        self.ParentTagStr is _Top_Populations_E_Traces_*V_Samples_Default
                                                                                                        
                                                                                                        self.LeakedParentPopulationDeriveLeakerVariable.LeakedInputKeyStrsList is 
                                                                                                        []
                                                                                                        xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                                                                                                                                                                                                                

In [ ]: