Install completions for entrypoints, misc config tweaks (#569)

* Install completions for entrypoints, misc config tweaks

* Bump dcargs
This commit is contained in:
Brent Yi authored and GitHub committed 2022-09-27 22:23:22 -07:00
1 parent 7c1734fe5c
commit 7f38490ec0
8 files changed
+65 -53

No files matched your search

+5 -1
View File
@@ -240,7 +240,7 @@ class Config(PrintableConfig):
"""Method name. Required to set in python or via cli"""
experiment_name: Optional[str] = None
"""Experiment name. If None, will automatically be set to dataset name"""
timestamp: str = datetime.now().strftime("%Y-%m-%d_%H%M%S")
timestamp: str = "{timestamp}"
"""Experiment timestamp."""
machine: MachineConfig = MachineConfig()
logging: LoggingConfig = LoggingConfig()
@@ -256,6 +256,10 @@ class Config(PrintableConfig):
}
)
def set_timestamp(self) -> None:
"""Dynamically set the experiment timestamp"""
self.timestamp = datetime.now().strftime("%Y-%m-%d_%H%M%S")
def set_experiment_name(self) -> None:
"""Dynamically set the experiment name"""
if self.experiment_name is None: