-
Notifications
You must be signed in to change notification settings - Fork 0
/
gsim_conf.py
71 lines (66 loc) · 2 KB
/
gsim_conf.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
# Select an experiment file:
#module_name = "experiments.example_experiments"
module_name = "experiments.placement_using_channel_maps"
# Other settings
# When using mayavi, you may need to comment the line
# "from tvtk.tools.tvtk_doc import TVTKFilterChooser, TVTK_FILTERS"
# at [path_to_your_environment]/lib/python3.6/site-packages/mayavi/filters/user_defined.py
use_mayavi = False
# GFigure
import gsim.gfigure
gsim.gfigure.title_to_caption = True
#gsim.gfigure.default_figsize = (5.5, 3.5)
#gsim.gfigure.default_figsize = (8., 3.8)
gsim.gfigure.default_figsize = (7., 3.8)
#log.setLevel(logging.DEBUG)
import logging.config
cfg = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'simple': {
'format': '{levelname}:{name}:{module}: {message}',
'style': '{',
},
'standard': {
'format': '{levelname}:{asctime}:{name}:{module}: {message}',
'style': '{',
},
'verbose': {
'format':
'{levelname}:{asctime}:{name}:{module}:{process:d}:{thread:d}: {message}',
'style': '{',
},
},
'handlers': {
# 'file': {
# 'level': 'INFO',
# 'class': 'logging.FileHandler',
# 'filename': os.path.join(BASE_DIR, LOGGING_DIR, 'all.log'),
# 'formatter': 'standard'
# },
'console': { # This one is overridden in settings_server.py
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'simple'
},
},
'loggers': {
'channel': {
'handlers': ['console'],
'level': 'WARNING',
'propagate': True,
},
'placers': {
'handlers': ['console'],
'level': 'WARNING',
'propagate': True,
},
'solvers': {
'handlers': ['console'],
'level': 'WARNING',
'propagate': True,
},
}
}
logging.config.dictConfig(cfg)