/usr/share/pyshared/brian/connections/base.py is in python-brian 1.3.1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | import copy
from itertools import izip
import itertools
from random import sample
import bisect
from ..units import second, msecond, check_units, DimensionMismatchError
import types
from .. import magic
from ..log import log_warn, log_info, log_debug
from numpy import *
from scipy import sparse, stats, rand, weave, linalg
import scipy
import scipy.sparse
import numpy
from numpy.random import binomial, exponential
import random as pyrandom
from scipy import random as scirandom
from ..utils.approximatecomparisons import is_within_absolute_tolerance
from ..globalprefs import get_global_preference
from ..base import ObjectContainer
from ..stdunits import ms
from operator import isSequenceType
effective_zero = 1e-40
colon_slice = slice(None, None, None)
def todense(x):
if hasattr(x, 'todense'):
return x.todense()
return array(x, copy=False)
|