arbor.synapse('expsyn')but I cannot find a way. What I want is a small current input on the postsynaptic cell for each presynaptic spike, can any one point me in the right direction? Thanks!
placea synapse and try to form a connection that ends on it?
mpi4pyand it seems a bit overkill for unit tests to start with file locking etc if we can just
pip install mpi4py
contextis not readable from Python and the
mpi_commhas no interface
def _build_cat(name, path): from mpi4py.MPI import COMM_WORLD as comm build_err = None try: if not comm.Get_rank(): subprocess.run(["build-catalogue", name, str(path)], check=True) build_err = comm.bcast(build_err, root=0) except Exception as e: build_err = comm.bcast(e, root=0) if build_err: raise RuntimeError("Tests can't build catalogues") return Path.cwd() / (name + "-catalogue.so")
PSA: Once arbor-sim/arbor#1693 is merged all Python unit tests must follow the
unittest naming conventions:
It's important that test files start with
test_, test cases start with
Test and test functions with
options.pycan also be burned now, right? Or is there still a use case for CLI args in the tests, not covered by the