I hereby claim:
- I am maedoc on github.
- I am maedoc (https://keybase.io/maedoc) on keybase.
- I have a public key ASDlVtu0WFbheTc4JDcQhznLEaxWGKxIikO5NNomUNdD_go
To claim this, I am signing this object:
print('importing') | |
import numpy as np | |
import sympy as sp | |
import scipy.optimize | |
import random | |
print('functions') | |
def gen_trace(n_time, sig, dt, a): | |
x = random.gauss(0, 3) |
conda create -n tvb python=2 numba scipy matplotlib jupyter numexpr scikit-learn | |
activate tvb | |
pip install networkx | |
git clone https://github.com/the-virtual-brain/tvb-library | |
git clone https://github.com/the-virtual-brain/tvb-data | |
set PYTHONPATH=%CD%\tvb-library;%CD%\tvb-library;%PYTHONPATH% | |
jupyter notebook |
import os | |
import numpy as np | |
import ctypes | |
import loopy as lp | |
from loopy.target import c | |
import cgen | |
import subprocess | |
import tempfile | |
.text | |
.file "f" | |
.globl "__main__.f$3.array(float32,_1d,_C).array(float32,_1d,_C)" | |
.align 16, 0x90 | |
.type "__main__.f$3.array(float32,_1d,_C).array(float32,_1d,_C)",@function | |
"__main__.f$3.array(float32,_1d,_C).array(float32,_1d,_C)": | |
.cfi_startproc | |
pushq %r14 | |
.Ltmp0: | |
.cfi_def_cfa_offset 16 |
# don't stop on error so we can catch and notify | |
set +x +e | |
# custom bot api token | |
export SLACK_API_SECRET=foo-bar-baz | |
# notify start | |
python<<EOF | |
import slackclient as sc, os | |
c = sc.SlackClient(os.environ['SLACK_API_SECRET']) |
I hereby claim:
To claim this, I am signing this object:
""" | |
This Cython module forms the basis of a MATLAB interface to TVB. | |
It is necessary to redirect MATLAB's libgfortran link as found in | |
$MATLAB/sys/os/glnxa64/libgfortran.so.3 to the one to which your NumPy's | |
extension module was linked, if it's a newer version than MATLAB's. | |
You might also try starting MATLAB like so | |
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0 matlab |
[ALL] | |
libraries = mwblas mwlapack | |
library_dirs = /usr/local/MATLAB/R2016a/bin/glnxa64 | |
runtime_library_dirs = /usr/local/MATLAB/R2016a/bin/glnxa64 | |
include_dirs = /usr/local/MATLAB/R2016a/extern/include | |
extra_compile_args = -fexceptions -fPIC -fno-omit-frame-pointer -pthread -D_GNU_SOURCE -DMATLAB_MEX_FILE | |
extra_link_args = -L/usr/local/MATLAB/R2016a/bin/glnxa64 -lmx -lmex -lmat -lm |