-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path__init__.py
executable file
·83 lines (64 loc) · 1.72 KB
/
__init__.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
===================================
Neuronal activity package (SENeC-I)
===================================
PyNeurActiv pacakage to study the simulated activity of neural networks.
This package is part of the broader SENeC initiative for the study of neuronal
cultures and devices.
Content
=======
`analysis`
Tools to analyze data related to neuronal activity, especially in link
with simulations involving [NEST][nest] or [NNGT][nngt].
`io`
Input/output functions to load and plot, sometimes based on [Neo][neo].
`lib`
Generic tools used throughout the modules.
`models`
Main module containing theoretical and numerical models to predict the
activity of neuronal populations.
"""
import logging as _logging
import sys as _sys
# ----------------------- #
# Requirements and config #
# ----------------------- #
# Python > 2.6
assert _sys.hexversion > 0x02060000, "PyNeurActiv requires Python > 2.6"
__version__ = "0.1.0"
# logging
_log = _logging.getLogger(__name__)
if not _log.handlers:
logConsoleFormatter = _logging.Formatter(
'[%(levelname)s @ %(name)s]: %(message)s')
consoleHandler = _logging.StreamHandler()
consoleHandler.setFormatter(logConsoleFormatter)
consoleHandler.setLevel(_logging.INFO)
_log.addHandler(consoleHandler)
# ------- #
# Modules #
# ------- #
from . import analysis
from . import data_io
from . import lib
from . import models
__all__ = [
"analysis",
"data_io",
"lib",
"models",
"Recorder",
]
try:
import matplotlib
from . import plot
__all__.append('plot')
except ImportError:
pass
try:
from .analysis import Recorder
__all__.append('Recorder')
except ImportError:
pass