diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-29 06:43:49 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-29 06:43:58 +0100 |
commit | a62e05c9564045044df734fd3723b3f665ad91ae (patch) | |
tree | 5a9e1570362fe9a47fe581c292f3bd84f6fd3e82 /dpd/src/Model_Lut.py | |
parent | bf53849fba5796d1b98254a7eeab575a50ae7996 (diff) | |
download | dabmod-a62e05c9564045044df734fd3723b3f665ad91ae.tar.gz dabmod-a62e05c9564045044df734fd3723b3f665ad91ae.tar.bz2 dabmod-a62e05c9564045044df734fd3723b3f665ad91ae.zip |
DPD: Make logging to file optional in all modules, simplify apply_adapt_dumps
Diffstat (limited to 'dpd/src/Model_Lut.py')
-rw-r--r-- | dpd/src/Model_Lut.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dpd/src/Model_Lut.py b/dpd/src/Model_Lut.py index 6d4db52..b349433 100644 --- a/dpd/src/Model_Lut.py +++ b/dpd/src/Model_Lut.py @@ -7,8 +7,10 @@ import os import logging - -logging_path = os.path.dirname(logging.getLoggerClass().root.handlers[0].baseFilename) +try: + logging_path = os.path.dirname(logging.getLoggerClass().root.handlers[0].baseFilename) +except AttributeError: + logging_path = None import numpy as np |