Skip to content

Commit 24d33e8

Browse files
authored
Merge pull request #385 from int-brain-lab/single_source_version
Single source ibllib version
2 parents cb03e7b + e1d5856 commit 24d33e8

File tree

3 files changed

+389
-206
lines changed

3 files changed

+389
-206
lines changed

ibllib/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1+
__version__ = "2.6.0"
12
import warnings
23

34
from ibllib.misc import logger_config
45

5-
warnings.filterwarnings('always', category=DeprecationWarning, module='ibllib')
6+
warnings.filterwarnings("always", category=DeprecationWarning, module="ibllib")
67

78
# if this becomes a full-blown library we should let the logging configuration to the discretion of the dev
89
# who uses the library. However since it can also be provided as an app, the end-users should be provided
910
# with an useful default logging in standard output without messing with the complex python logging system
1011
# -*- coding:utf-8 -*-
1112

1213
import logging
14+
1315
USE_LOGGING = True
1416
#%(asctime)s,%(msecs)d
1517
if USE_LOGGING:
16-
logger_config(name='ibllib')
18+
logger_config(name="ibllib")
1719
else:
1820
# deactivate all log calls for use as a library
19-
logging.getLogger('ibllib').addHandler(logging.NullHandler())
21+
logging.getLogger("ibllib").addHandler(logging.NullHandler())
2022

2123
try:
2224
import one
2325
except ModuleNotFoundError:
24-
logging.getLogger('ibllib').error('Missing dependency, please run `pip install ONE-api`')
26+
logging.getLogger("ibllib").error("Missing dependency, please run `pip install ONE-api`")

0 commit comments

Comments
 (0)