Improve code quality

This commit is contained in:
Matthias
2023-03-19 17:50:08 +01:00
parent 236499a195
commit 222ecdecd2
9 changed files with 15 additions and 16 deletions

View File

@@ -1,4 +1,3 @@
import io
import logging
from copy import deepcopy
from datetime import datetime, timezone
@@ -464,7 +463,7 @@ class HyperoptTools():
return
try:
io.open(csv_file, 'w+').close()
Path(csv_file).open('w+').close()
except IOError:
logger.error(f"Failed to create CSV file: {csv_file}")
return