Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Latest commit

 

History

History

integration

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Generating Tests Input Dataset

There two integration tests under tests/integration/ directory. The input dataset is generated using NEURON. You can follow below steps for test data generation.

Once you have latest NEURON installed, you have to clone ringtest model from github:

git clone https://github.com/nrnhines/ringtest.git

You have to create special as usual with NEURON:

nrnivmodl mod

Now we can generate data for ring test as:

mpirun -n 2 ./x86_64/special ringtest.py -nring 1 -ncell 20 -tstop 100 -mpi -dumpmodel

# sort spikes and remove old spike output
sortspike spk2.std coredat/out.dat.ref
rm spk2.std

The generated dataset can be copied to tests/integration/ring/:

mv coredat/* <external>/coreneuron/tests/integration/ring/

Similarly, dataset for ring_gap test can be generated as:

mpirun -n 2 ./x86_64/special ringtest.py -nring 1 -ncell 20 -tstop 100 -gap -mpi -dumpmodel

# sort spikes and remove old spike output
sortspike spk2.std coredat/out.dat.ref
rm spk2.std
mv coredat/* <external>/coreneuron/tests/integration/ring_gap/