Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 29, 2024
1 parent 66edca5 commit d5a1549
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deepmd/pt/train/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ def get_dataloader_and_buffer(_data, _params):
validation_dataloader,
validation_data_buffered,
) = get_dataloader_and_buffer(_validation_data, _training_params)
valid_numb_batch = _training_params["validation_data"].get("numb_btch", 1)
valid_numb_batch = _training_params["validation_data"].get(
"numb_btch", 1
)
else:
validation_dataloader = None
validation_data_buffered = None

Check warning on line 175 in deepmd/pt/train/training.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/train/training.py#L174-L175

Added lines #L174 - L175 were not covered by tests
Expand Down

0 comments on commit d5a1549

Please sign in to comment.