Skip to content

Commit

Permalink
fix @Freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
mivanit committed Jul 26, 2024
1 parent 4ae9501 commit ffa068b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion maze_transformer/training/train_save_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from maze_transformer.training.config import ConfigHolder


@freeze
class TRAIN_SAVE_FILES:
"""namespace for filenames/formats for saving training data"""

Expand All @@ -27,3 +26,6 @@ class TRAIN_SAVE_FILES:
model_run_dir: Callable[[ConfigHolder], str] = (
lambda cfg: f"{sanitize_fname(cfg.name)}_{datetime.now().strftime('%Y-%m-%d-%H-%M-%S')}"
)

def __setattr__(self, name, value):
raise AttributeError("TRAIN_SAVE_FILES is immutable")

0 comments on commit ffa068b

Please sign in to comment.