-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test for error in compartment synapses
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# 0504_CompartmentSynapse | ||
|
||
attempting to create a set of compartments connected by chemical synapses | ||
|
||
## tests | ||
|
||
- 1D, 3 units, network, synaptic connection compartment ODE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# work out our folder name | ||
test=${PWD##*/} # to assign to a variable | ||
test=${test:-/} # to correct for the case where PWD=/ | ||
|
||
fail=0 | ||
|
||
# run sbmodelr | ||
../../sbmodelr -s blob -n ../sources/1to2to3.gv ../sources/blob.cps 3 > output | ||
|
||
# check that the an error is issued | ||
if ! grep -q "ERROR: blob is a compartment ODE, but compartments cannot have synaptic links" output; then | ||
printf 'FAIL %s\n' "${test}" | ||
let "fail = 1" | ||
fi | ||
|
||
if [ "$fail" = 0 ] ; then | ||
printf 'PASS %s\n' "${test}" | ||
rm output | ||
fi | ||
|
||
exit $fail |