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
/* Generated by Cython 0.17.2 on Fri Nov 15 15:43:56 2013 */ | |
#define PY_SSIZE_T_CLEAN | |
#include "Python.h" | |
#ifndef Py_PYTHON_H | |
#error Python headers needed to compile C extensions, please install development version of Python. | |
#elif PY_VERSION_HEX < 0x02040000 | |
#error Cython requires Python 2.4+. | |
#else | |
#include <stddef.h> /* For offsetof */ |
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
/* Generated by Cython 0.17.2 on Fri Nov 15 18:37:55 2013 */ | |
#define PY_SSIZE_T_CLEAN | |
#include "Python.h" | |
#ifndef Py_PYTHON_H | |
#error Python headers needed to compile C extensions, please install development version of Python. | |
#elif PY_VERSION_HEX < 0x02040000 | |
#error Cython requires Python 2.4+. | |
#else | |
#include <stddef.h> /* For offsetof */ |
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
import sys | |
import brian2 | |
# Modified from http://code.activestate.com/recipes/496741-object-proxying/ | |
class Proxy(object): | |
__slots__ = ["_obj", "__weakref__"] | |
def __init__(self, obj): | |
object.__setattr__(self, "_obj", obj) | |
# |
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
from pylab import * | |
from scipy import weave | |
# in increasing size | |
int_types = ['int32_t', 'int64_t'] | |
float_types = ['float', 'double'] | |
all_types = int_types+float_types | |
support_code = ''' | |
#ifdef _MSC_VER == 1500 | |
typedef __int32 int32_t; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import numpy as np | |
from scipy import stats | |
def measure(n): | |
"Measurement model, return two coupled measurements." | |
m1 = np.random.normal(size=n) | |
m2 = np.random.normal(scale=0.5, size=n) | |
return m1+m2, m1-m2 | |
m1, m2 = measure(20) |
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
C:\Anaconda\python.exe D:/programming/brian2/dev/tools/run_nose_tests_long_and_standalone.py | |
INFO Cache size for target "cython": 1594 MB. | |
You can call "clear_cache('cython')" to delete all files from the cache or manually delete files in the "C:\Users\dgoodman\.cython\brian_extensions" directory. [brian2] | |
Running tests in D:\programming\brian2\brian2 for targets numpy, weave, cython (including long tests) | |
Testing standalone | |
Testing codegen-independent code | |
Resetting to default preferences | |
Setting dtype for floating point variables to: float32 | |
Running tests that do not use code generation |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer