Skip to content

Commit 1b4a8fe

Browse files
Irina NicolaeIrina Nicolae
authored andcommitted
Create constant NUMPY_DTYPE in lib init (close #87)
1 parent 5a0fe10 commit 1b4a8fe

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

art/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import os
2-
31
import json
2+
import logging
43
import logging.config
4+
import os
5+
6+
from numpy import float32
57

68
LOGGING = {
79
'version': 1,
@@ -34,6 +36,7 @@
3436
}
3537
}
3638
logging.config.dictConfig(LOGGING)
39+
logger = logging.getLogger(__name__)
3740

3841
_folder = os.path.expanduser('~')
3942
if not os.access(_folder, os.W_OK):
@@ -66,3 +69,5 @@
6669

6770
if 'DATA_PATH' in _config:
6871
DATA_PATH = _config['DATA_PATH']
72+
73+
NUMPY_DTYPE = float32

0 commit comments

Comments
 (0)