Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed May 28, 2024
1 parent 92708cf commit a846019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pvnet/data/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ def __init__(
if not ((batch_dir is not None) ^ (configuration is not None)):
raise ValueError("Exactly one of `batch_dir` or `configuration` must be set.")

if not (nwp_channels is not None) and (batch_dir is None):
if (nwp_channels is not None) and (batch_dir is None):
raise ValueError(
"In order for 'nwp_channels' to work, we need batch_dir. "
"Otherwise the nwp channels id one in the configuration"
"Otherwise the nwp channels is one in the configuration"
)

if batch_dir is not None:
Expand Down

0 comments on commit a846019

Please sign in to comment.