sg-s / xolotl

A MATLAB neuron simulator. Very fast (written in C++). Flexible (fully object oriented). Immediate (live manipulation in MATLAB). Comes with a powerful parameter optimizer. Get started ➡️
https://go.brandeis.edu/xolotl
GNU General Public License v3.0
43 stars 8 forks source link

AlphaSynapse is broken (at least in some version) #582

Closed smbaca closed 2 years ago

smbaca commented 2 years ago

Please go through the following steps before you file an issue that documents a problem or a potential bug and please check each item as you do so:

Information

Please provide the following information:

Operating System

MAC 12.4 '9.12.0.1975300 (R2022a) Update 3'

Output of "version" command in MATLAB

Output of "mex.getCompilerConfigurations('C++')" in MATLAB

CompilerConfiguration with properties:

             Name: 'Xcode Clang++'
     Manufacturer: 'Apple'
         Language: 'C++'
          Version: '13.1.6'
         Location: '/Applications/Xcode.app/Contents/Developer'
        ShortName: 'Clang++'
         Priority: 'A'
          Details: [1×1 mex.CompilerConfigurationDetails]
       LinkerName: '/usr/bin/xcrun -sdk macosx12.3 clang++'
    LinkerVersion: ''
           MexOpt: '/Users/smbaca/Library/Application Support/MathWorks/MATLAB/R2022a/mex_C++_maci64.xml'

Bug reports

Please replace this section with:

I am trying to run through the xolotl self-tests. Everything ran ok except most conductances failed to compile. I then went to the docs page to try to compile and setup a simple cell and network with the following:

x = xolotl;
x.add('compartment','AB','A',0.0628)
x.AB.add('prinz/NaV','gbar',1000);
x.AB.add('prinz/CaT','gbar',25);
x.AB.add('prinz/CaS','gbar',60);
x.AB.add('prinz/ACurrent','gbar',500);
x.AB.add('prinz/KCa','gbar',50);
x.AB.add('prinz/Kd','gbar',1000);
x.AB.add('prinz/HCurrent','gbar',.1);
x
x.AB.add('prinz/CalciumMech');
x.plot()
x.add('compartment','LP','A',0.0628)
x.LP.add('prinz/NaV','gbar',1000);
x.LP.add('prinz/Kd','gbar',1000);
x.connect('AB','LP','AlphaSynapse')
x.LP
x.LP.AlphaSynapseAB.gmax = 20;
x.plot()
xolotl.compile

What you expected to happen

I expected it to work as demonstrated in the how to documents.

What actually happened

To see the complete error I changed the self.verbosity to -v instead of -silent in the compile.m. The error is below.


Verbose mode is on.
... Looking for compiler 'Xcode Clang++' ...
... Looking for environment variable 'DEVELOPER_DIR' ...No.
... Executing command 'xcode-select -print-path' ...Yes ('/Applications/Xcode.app/Contents/Developer').
... Looking for folder '/Applications/Xcode.app/Contents/Developer' ...Yes.
... Executing command 'which xcrun' ...Yes ('/usr/bin/xcrun').
... Looking for folder '/usr/bin' ...Yes.
... Executing command 'defaults read com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense' ...No.
... Executing command 'defaults read /Library/Preferences/com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense' ...Yes ('12.5.1').
... Executing command '
agreed=12.5.1 
 if echo $agreed | grep -E '[\.\"]' >/dev/null; then 
 lhs=`expr "$agreed" : '\([0-9]*\)[\.].*'` 
  rhs=`expr "$agreed" : '[0-9]*[\.]\(.*\)$'` 
 if echo $rhs | grep -E '[\."]' >/dev/null; then 
 rhs=`expr "$rhs" : '\([0-9]*\)[\.].*'` 
 fi 
 if [ $lhs -gt 4 ] || ( [ $lhs -eq 4 ] && [ $rhs -ge 3 ] ); then 
 echo $agreed 
 else 
 exit 1
 fi 
 fi' ...Yes ('12.5.1').
... Executing command 'xcrun -sdk macosx --show-sdk-path' ...Yes ('/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk').
... Executing command 'xcrun -sdk macosx --show-sdk-version | awk 'BEGIN {FS="."} ; {print $1"."$2}'' ...Yes ('12.3').
... Executing command 'clang --version | grep -Eo '[0-9]+\.[0-9]+\.[0-9]'|head -1' ...Yes ('13.1.6').
Found installed compiler 'Xcode Clang++'.
Set INCLUDE = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/13.1.6/include;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/13.1.6/include;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks;
Options file details
-------------------------------------------------------------------
    Compiler location: /Applications/Xcode.app/Contents/Developer
    Options file: /Users/smbaca/Library/Application Support/MathWorks/MATLAB/R2022a/mex_C++_maci64.xml
    CMDLINE200 : /usr/bin/xcrun -sdk macosx12.3 clang++ -Wl,-twolevel_namespace -undefined error -arch x86_64 -mmacosx-version-min=10.15 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -framework Cocoa -bundle  -stdlib=libc++ -O -Wl,-exported_symbols_list,"/Applications/MATLAB_R2022a.app/extern/lib/maci64/mexFunction.map" -Wl,-exported_symbols_list,"/Applications/MATLAB_R2022a.app/extern/lib/maci64/c_exportsmexfileversion.map" -Wl,-U,_mexCreateMexFunction -Wl,-U,_mexDestroyMexFunction -Wl,-U,_mexFunctionAdapter -Wl,-exported_symbols_list,"/Applications/MATLAB_R2022a.app/extern/lib/maci64/cppMexFunction.map" /var/folders/c0/9x7zll5x1j9dc2tyr11lm1qh0000gn/T/mex_305995431499176_99003/X_f55823b1c5b3800a85811082c560d842.o /var/folders/c0/9x7zll5x1j9dc2tyr11lm1qh0000gn/T/mex_305995431499176_99003/cpp_mexapi_version.o   -L"/Applications/MATLAB_R2022a.app/bin/maci64" -lmx -lmex -lmat -L"/Applications/MATLAB_R2022a.app/extern/bin/maci64" -lMatlabDataArray -lMatlabEngine -o /Users/smbaca/Documents/MATLAB/xolotl/X_f55823b1c5b3800a85811082c560d842.mexmaci64
    CC : /usr/bin/xcrun -sdk macosx12.3 clang
    CXX : /usr/bin/xcrun -sdk macosx12.3 clang++
    DEFINES : -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -DMATLAB_MEX_FILE 
    MATLABMEX : -DMATLAB_MEX_FILE 
    MACOSX_DEPLOYMENT_TARGET : 10.15
    CFLAGS : -fno-common -arch x86_64 -mmacosx-version-min=10.15 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
    CXXFLAGS : -fno-common -arch x86_64 -mmacosx-version-min=10.15 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -fobjc-arc -std=c++11 -stdlib=libc++
    INCLUDE : -I"/Users/smbaca/Library/Application Support/MathWorks/MATLAB Add-Ons/Toolboxes/xolotl/c++/"  -I"/Applications/MATLAB_R2022a.app/extern/include" -I"/Applications/MATLAB_R2022a.app/simulink/include"
    CXXOPTIMFLAGS : -O2 -fwrapv -DNDEBUG
    CXXDEBUGFLAGS : -g
    LD : /usr/bin/xcrun -sdk macosx12.3 clang
    LDXX : /usr/bin/xcrun -sdk macosx12.3 clang++
    LDFLAGS : -Wl,-twolevel_namespace -undefined error -arch x86_64 -mmacosx-version-min=10.15 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -framework Cocoa -bundle  -stdlib=libc++
    LDBUNDLE : -bundle 
    LINKEXPORT : -Wl,-exported_symbols_list,"/Applications/MATLAB_R2022a.app/extern/lib/maci64/mexFunction.map"
    LINKEXPORTVER : -Wl,-exported_symbols_list,"/Applications/MATLAB_R2022a.app/extern/lib/maci64/c_exportsmexfileversion.map"
    LINKEXPORTCPP : -Wl,-U,_mexCreateMexFunction -Wl,-U,_mexDestroyMexFunction -Wl,-U,_mexFunctionAdapter -Wl,-exported_symbols_list,"/Applications/MATLAB_R2022a.app/extern/lib/maci64/cppMexFunction.map"
    LINKLIBS : -L"/Applications/MATLAB_R2022a.app/bin/maci64" -lmx -lmex -lmat -L"/Applications/MATLAB_R2022a.app/extern/bin/maci64" -lMatlabDataArray -lMatlabEngine
    LDOPTIMFLAGS : -O
    LDDEBUGFLAGS : -g
    OBJEXT : .o
    LDEXT : .mexmaci64
    SETENV : CC="/usr/bin/xcrun -sdk macosx12.3 clang"
                CXX="/usr/bin/xcrun -sdk macosx12.3 clang++"
                CFLAGS="-fno-common -arch x86_64 -mmacosx-version-min=10.15 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -DMATLAB_MEX_FILE "
                CXXFLAGS="-fno-common -arch x86_64 -mmacosx-version-min=10.15 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -DMATLAB_MEX_FILE "
                COPTIMFLAGS="-O2 -fwrapv -DNDEBUG"
                CXXOPTIMFLAGS="-O2 -fwrapv -DNDEBUG"
                CDEBUGFLAGS="-g"
                CXXDEBUGFLAGS="-g"
                LD="/usr/bin/xcrun -sdk macosx12.3 clang"
                LDXX="/usr/bin/xcrun -sdk macosx12.3 clang++"
                LDFLAGS="-Wl,-twolevel_namespace -undefined error -arch x86_64 -mmacosx-version-min=10.15 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -framework Cocoa -bundle  -stdlib=libc++ -L"/Applications/MATLAB_R2022a.app/bin/maci64" -lmx -lmex -lmat -L"/Applications/MATLAB_R2022a.app/extern/bin/maci64" -lMatlabDataArray -lMatlabEngine -Wl,-exported_symbols_list,"/Applications/MATLAB_R2022a.app/extern/lib/maci64/mexFunction.map""
                LDDEBUGFLAGS="-g"
    DEVELOPER_DIR_CHECK : 
    XCODE_DIR : /Applications/Xcode.app/Contents/Developer
    XCRUN_DIR : /usr/bin
    XCODE_AGREED_VERSION : 12.5.1
    ISYSROOT : /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
    SDKVER : 12.3
    CLANG_VERSION : 13.1.6
    MATLABROOT : /Applications/MATLAB_R2022a.app
    ARCH : maci64
    SRC : "/Users/smbaca/Documents/MATLAB/xolotl/X_f55823b1c5b3800a85811082c560d842.cpp";"/Applications/MATLAB_R2022a.app/extern/version/cpp_mexapi_version.cpp"
    OBJ : /var/folders/c0/9x7zll5x1j9dc2tyr11lm1qh0000gn/T/mex_305995431499176_99003/X_f55823b1c5b3800a85811082c560d842.o;/var/folders/c0/9x7zll5x1j9dc2tyr11lm1qh0000gn/T/mex_305995431499176_99003/cpp_mexapi_version.o
    OBJS : /var/folders/c0/9x7zll5x1j9dc2tyr11lm1qh0000gn/T/mex_305995431499176_99003/X_f55823b1c5b3800a85811082c560d842.o /var/folders/c0/9x7zll5x1j9dc2tyr11lm1qh0000gn/T/mex_305995431499176_99003/cpp_mexapi_version.o 
    SRCROOT : /Users/smbaca/Documents/MATLAB/xolotl/X_f55823b1c5b3800a85811082c560d842
    DEF : /var/folders/c0/9x7zll5x1j9dc2tyr11lm1qh0000gn/T/mex_305995431499176_99003/X_f55823b1c5b3800a85811082c560d842.def
    EXP : "/Users/smbaca/Documents/MATLAB/xolotl/X_f55823b1c5b3800a85811082c560d842.exp"
    LIB : "/Users/smbaca/Documents/MATLAB/xolotl/X_f55823b1c5b3800a85811082c560d842.lib"
    EXE : /Users/smbaca/Documents/MATLAB/xolotl/X_f55823b1c5b3800a85811082c560d842.mexmaci64
    ILK : "/Users/smbaca/Documents/MATLAB/xolotl/X_f55823b1c5b3800a85811082c560d842.ilk"
    MANIFEST : "/Users/smbaca/Documents/MATLAB/xolotl/X_f55823b1c5b3800a85811082c560d842.mexmaci64.manifest"
    TEMPNAME : /Users/smbaca/Documents/MATLAB/xolotl/X_f55823b1c5b3800a85811082c560d842
    EXEDIR : /Users/smbaca/Documents/MATLAB/xolotl/
    EXENAME : X_f55823b1c5b3800a85811082c560d842
    OPTIM : -O2 -fwrapv -DNDEBUG
    LINKOPTIM : -O
    CMDLINE100_0 : /usr/bin/xcrun -sdk macosx12.3 clang++ -c -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -DMATLAB_MEX_FILE  -I"/Users/smbaca/Library/Application Support/MathWorks/MATLAB Add-Ons/Toolboxes/xolotl/c++/"  -I"/Applications/MATLAB_R2022a.app/extern/include" -I"/Applications/MATLAB_R2022a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.15 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -O2 -fwrapv -DNDEBUG "/Users/smbaca/Documents/MATLAB/xolotl/X_f55823b1c5b3800a85811082c560d842.cpp" -o /var/folders/c0/9x7zll5x1j9dc2tyr11lm1qh0000gn/T/mex_305995431499176_99003/X_f55823b1c5b3800a85811082c560d842.o
    CMDLINE100_1 : /usr/bin/xcrun -sdk macosx12.3 clang++ -c -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -DMATLAB_MEX_FILE  -I"/Users/smbaca/Library/Application Support/MathWorks/MATLAB Add-Ons/Toolboxes/xolotl/c++/"  -I"/Applications/MATLAB_R2022a.app/extern/include" -I"/Applications/MATLAB_R2022a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.15 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -O2 -fwrapv -DNDEBUG "/Applications/MATLAB_R2022a.app/extern/version/cpp_mexapi_version.cpp" -o /var/folders/c0/9x7zll5x1j9dc2tyr11lm1qh0000gn/T/mex_305995431499176_99003/cpp_mexapi_version.o
-------------------------------------------------------------------
Building with 'Xcode Clang++'.
/usr/bin/xcrun -sdk macosx12.3 clang++ -c -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -DMATLAB_MEX_FILE  -I"/Users/smbaca/Library/Application Support/MathWorks/MATLAB Add-Ons/Toolboxes/xolotl/c++/"  -I"/Applications/MATLAB_R2022a.app/extern/include" -I"/Applications/MATLAB_R2022a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.15 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -O2 -fwrapv -DNDEBUG "/Users/smbaca/Documents/MATLAB/xolotl/X_f55823b1c5b3800a85811082c560d842.cpp" -o /var/folders/c0/9x7zll5x1j9dc2tyr11lm1qh0000gn/T/mex_305995431499176_99003/X_f55823b1c5b3800a85811082c560d842.o
/usr/bin/xcrun -sdk macosx12.3 clang++ -c -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -DMATLAB_MEX_FILE  -I"/Users/smbaca/Library/Application Support/MathWorks/MATLAB Add-Ons/Toolboxes/xolotl/c++/"  -I"/Applications/MATLAB_R2022a.app/extern/include" -I"/Applications/MATLAB_R2022a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.15 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -O2 -fwrapv -DNDEBUG "/Applications/MATLAB_R2022a.app/extern/version/cpp_mexapi_version.cpp" -o /var/folders/c0/9x7zll5x1j9dc2tyr11lm1qh0000gn/T/mex_305995431499176_99003/cpp_mexapi_version.o
/usr/bin/xcrun -sdk macosx12.3 clang++ -Wl,-twolevel_namespace -undefined error -arch x86_64 -mmacosx-version-min=10.15 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -framework Cocoa -bundle  -stdlib=libc++ -O -Wl,-exported_symbols_list,"/Applications/MATLAB_R2022a.app/extern/lib/maci64/mexFunction.map" -Wl,-exported_symbols_list,"/Applications/MATLAB_R2022a.app/extern/lib/maci64/c_exportsmexfileversion.map" -Wl,-U,_mexCreateMexFunction -Wl,-U,_mexDestroyMexFunction -Wl,-U,_mexFunctionAdapter -Wl,-exported_symbols_list,"/Applications/MATLAB_R2022a.app/extern/lib/maci64/cppMexFunction.map" /var/folders/c0/9x7zll5x1j9dc2tyr11lm1qh0000gn/T/mex_305995431499176_99003/X_f55823b1c5b3800a85811082c560d842.o /var/folders/c0/9x7zll5x1j9dc2tyr11lm1qh0000gn/T/mex_305995431499176_99003/cpp_mexapi_version.o   -L"/Applications/MATLAB_R2022a.app/bin/maci64" -lmx -lmex -lmat -L"/Applications/MATLAB_R2022a.app/extern/bin/maci64" -lMatlabDataArray -lMatlabEngine -o /Users/smbaca/Documents/MATLAB/xolotl/X_f55823b1c5b3800a85811082c560d842.mexmaci64
Error using mex
Undefined symbols for architecture x86_64:
  "AlphaSynapse::getCurrent(double)", referenced from:
      vtable for AlphaSynapse in X_f55823b1c5b3800a85811082c560d842.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Error in xolotl/compile (line 64)
    mex('-v',ipath,mexBridge_name,'-outdir',filelib.cachePath('xolotl'))

Error in xolotl/integrate (line 107)
            self.compile;

Error in xolotl/plot (line 150)
[V, Ca, ~, currents] = self.integrate;
sg-s commented 2 years ago

Problem is with the AlphaSynapse component

sg-s commented 2 years ago

so this code:

x = xolotl;
x.add('compartment','AB','A',0.0628)
x.AB.add('prinz/NaV','gbar',1000);
x.AB.add('prinz/CaT','gbar',25);
x.AB.add('prinz/CaS','gbar',60);
x.AB.add('prinz/ACurrent','gbar',500);
x.AB.add('prinz/KCa','gbar',50);
x.AB.add('prinz/Kd','gbar',1000);
x.AB.add('prinz/HCurrent','gbar',.1);

x.AB.add('prinz/CalciumMech');
x.add('compartment','LP','A',0.0628)
x.LP.add('prinz/NaV','gbar',1000);
x.LP.add('prinz/Kd','gbar',1000);
x.connect('AB','LP','AlphaSynapse')
x.LP.AlphaSynapseAB.gmax = 20;
x.plot()

works for me, and generates this output

Screen Shot 2022-07-17 at 3 16 01 PM

@smbaca can i ask which version of xolotl you're using? what does xolotl.version tell you?

did you install via the toolbox, or did you download via git and install? I may have to bring the toolbox up to date.

smbaca commented 2 years ago

xolotl.version v21.5.9

I installed with the Toolbox. I know that if I install the BlackBoxNeuron toolbox I get a lot more errors running the code until I place the BlackBox folder further down in the MATLAB path.

smb

On Jul 17, 2022, at 3:17 PM, Srinivas Gorur-Shandilya @.***> wrote:

so this code:

x = xolotl; x.add('compartment','AB','A',0.0628) x.AB.add('prinz/NaV','gbar',1000); x.AB.add('prinz/CaT','gbar',25); x.AB.add('prinz/CaS','gbar',60); x.AB.add('prinz/ACurrent','gbar',500); x.AB.add('prinz/KCa','gbar',50); x.AB.add('prinz/Kd','gbar',1000); x.AB.add('prinz/HCurrent','gbar',.1);

x.AB.add('prinz/CalciumMech'); x.add('compartment','LP','A',0.0628) x.LP.add('prinz/NaV','gbar',1000); x.LP.add('prinz/Kd','gbar',1000); x.connect('AB','LP','AlphaSynapse') x.LP.AlphaSynapseAB.gmax = 20; x.plot() works for me, and generates this output

https://user-images.githubusercontent.com/6005346/179421406-6e95d33e-e116-4106-be72-66016b0662f7.png @smbaca https://github.com/smbaca can i ask which version of xolotl you're using? what does xolotl.version tell you?

did you install via the toolbox, or did you download via git and install? I may have to bring the toolbox up to date.

— Reply to this email directly, view it on GitHub https://github.com/sg-s/xolotl/issues/582#issuecomment-1186592294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVXMEQGV7GKYTDNB7MJDALVURL4BANCNFSM52Z3IRUA. You are receiving this because you were mentioned.

smbaca commented 2 years ago

Uninstalled all the Toolbox versions and used git. Took me a bit to realize I needed to rebuild the cache but now I have v22.7.17 and the code below runs properly.

-smb

On Jul 17, 2022, at 3:17 PM, Srinivas Gorur-Shandilya @.***> wrote:

so this code:

x = xolotl; x.add('compartment','AB','A',0.0628) x.AB.add('prinz/NaV','gbar',1000); x.AB.add('prinz/CaT','gbar',25); x.AB.add('prinz/CaS','gbar',60); x.AB.add('prinz/ACurrent','gbar',500); x.AB.add('prinz/KCa','gbar',50); x.AB.add('prinz/Kd','gbar',1000); x.AB.add('prinz/HCurrent','gbar',.1);

x.AB.add('prinz/CalciumMech'); x.add('compartment','LP','A',0.0628) x.LP.add('prinz/NaV','gbar',1000); x.LP.add('prinz/Kd','gbar',1000); x.connect('AB','LP','AlphaSynapse') x.LP.AlphaSynapseAB.gmax = 20; x.plot() works for me, and generates this output

https://user-images.githubusercontent.com/6005346/179421406-6e95d33e-e116-4106-be72-66016b0662f7.png @smbaca https://github.com/smbaca can i ask which version of xolotl you're using? what does xolotl.version tell you?

did you install via the toolbox, or did you download via git and install? I may have to bring the toolbox up to date.

— Reply to this email directly, view it on GitHub https://github.com/sg-s/xolotl/issues/582#issuecomment-1186592294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVXMEQGV7GKYTDNB7MJDALVURL4BANCNFSM52Z3IRUA. You are receiving this because you were mentioned.

sg-s commented 2 years ago

you don't need to install BlackBoxNeuron and xolotl -- they're redundant in some sense because BlackBoxNeuron includes xolotl. Maybe an older version of the synapse was shadowing the newer version? anyway glad it's working now. i'll build a new release but it looks like this is resolved.