Commit baa71d88 authored by Theo Steininger's avatar Theo Steininger

Added config for loglevel

parent c1d0d8a6
Pipeline #17402 passed with stages
in 25 minutes and 41 seconds
......@@ -30,6 +30,8 @@ from .config import dependency_injector,\
nifty_configuration,\
d2o_configuration
logger.logger.setLevel(nifty_configuration['loglevel'])
from d2o import distributed_data_object, d2o_librarian
from .field import Field
......
......@@ -82,13 +82,20 @@ variable_threads = keepers.Variable(
lambda z: np.int(abs(z)) == z,
genus='int')
variable_loglevel = keepers.Variable(
'loglevel',
[10],
lambda z: np.int(z) == z and 0 <= z <= 50,
genus='int')
nifty_configuration = keepers.get_Configuration(
name='NIFTy',
variables=[variable_fft_module,
variable_default_field_dtype,
variable_default_distribution_strategy,
variable_harmonic_rg_base,
variable_threads],
variable_threads,
variable_loglevel],
file_name='NIFTy.conf',
search_paths=[os.path.expanduser('~') + "/.config/nifty/",
os.path.expanduser('~') + "/.config/",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment