Fixed loggin
This commit is contained in:
parent
2f5fc731bb
commit
bd158eefd2
@ -394,13 +394,13 @@ class Hyperopt:
|
|||||||
|
|
||||||
# Verification for overwrite
|
# Verification for overwrite
|
||||||
if path.isfile(csv_file):
|
if path.isfile(csv_file):
|
||||||
logging.error("CSV-File already exists!")
|
logger.error("CSV-File already exists!")
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
io.open(csv_file, 'w+').close()
|
io.open(csv_file, 'w+').close()
|
||||||
except IOError:
|
except IOError:
|
||||||
logging.error("Filed to create/overwrite CSV-File!")
|
logger.error("Filed to create CSV-File!")
|
||||||
return
|
return
|
||||||
|
|
||||||
trials = json_normalize(results, max_level=1)
|
trials = json_normalize(results, max_level=1)
|
||||||
|
Loading…
Reference in New Issue
Block a user