Skip to content

Commit

Permalink
fixed invalid regex string
Browse files Browse the repository at this point in the history
  • Loading branch information
pbenner committed Jan 11, 2025
1 parent 4a2fc38 commit 5ad95a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion equitrain/train_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def _list_checkpoint_directories(base_path: Path | str, monitor_target: str):
pattern = f'^.*best_{monitor_target}_epochs@([0-9]+)_e@([0-9]*\.[0-9]+)$'
pattern = rf'^.*best_{monitor_target}_epochs@([0-9]+)_e@([0-9]*\.[0-9]+)$'

regex = re.compile(pattern)

Expand Down

0 comments on commit 5ad95a5

Please sign in to comment.