Skip to content

Commit

Permalink
fixed default fileconfig bug for empty files
Browse files Browse the repository at this point in the history
  • Loading branch information
simplymathematics committed Nov 29, 2023
1 parent 1723379 commit 0a55075
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions deckard/base/files/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ def __init__(
:param kwargs: Additional keyword arguments to be added to the files dictionary.
:return: A FileConfig object.
"""
# self._target_ = "deckard.base.files.FileConfig"
needs = [reports, data_dir, model_dir, attack_dir]
for need in needs:
assert need is not None, f"Need to specify {need}"
self._target_ = "deckard.base.files.FileConfig"
files.update(kwargs)
self.reports = str(Path(reports).as_posix()) if reports is not None else None
self.data_dir = str(Path(data_dir).as_posix()) if data_dir is not None else None
Expand Down

0 comments on commit 0a55075

Please sign in to comment.