Skip to content
Snippets Groups Projects
Commit 6445ee9d authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Adjust log file paths.

parent d675217c
No related branches found
No related tags found
No related merge requests found
......@@ -69,8 +69,8 @@ if __name__ == '__main__':
sys.exit()
# initialize logging
log_file = MODEL_PATH.joinpath(PREDICTAND,
state_file.name.replace('.pt', '_log.txt'))
log_file = state_file.parent.joinpath(
state_file.name.replace(state_file.suffix, '_log.txt'))
dictConfig(log_conf(log_file))
# predict reference period
......
......@@ -54,8 +54,8 @@ if __name__ == '__main__':
state_file = MODEL_PATH.joinpath(PREDICTAND, state_file)
# initialize logging
log_file = MODEL_PATH.joinpath(PREDICTAND,
state_file.name.replace('.pt', '_log.txt'))
log_file = state_file.parent.joinpath(
state_file.name.replace(state_file.suffix, '_log.txt'))
if log_file.exists():
log_file.unlink()
dictConfig(log_conf(log_file))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment