Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
kavanase committed Jun 27, 2024
2 parents f05b395 + 950b576 commit b591aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nequip/train/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ def _parse_n_train_n_val(
n = getattr(self, n_name)
if isinstance(n, str) and "%" in n:
n_train_n_val.append(
(float(n.strip("%")) / 100) * dataset_size
(float(n.rstrip("%")) / 100) * dataset_size
) # convert to float first
elif isinstance(n, int):
n_train_n_val.append(n)
Expand Down

0 comments on commit b591aa2

Please sign in to comment.