From a8460190f23626f4651f9297bca545451416c324 Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Tue, 28 May 2024 11:50:25 +0100 Subject: [PATCH] fix --- pvnet/data/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pvnet/data/base.py b/pvnet/data/base.py index 2019d462..b53c4ee8 100644 --- a/pvnet/data/base.py +++ b/pvnet/data/base.py @@ -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: