From b23ec8caa2a912837e4108b6522893ae7d709519 Mon Sep 17 00:00:00 2001 From: "jason.regina" Date: Thu, 24 Aug 2023 15:25:20 +0000 Subject: [PATCH 1/2] add bool dunder method to parquet store --- .../src/hydrotools/nwm_client_new/ParquetStore.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/nwm_client_new/src/hydrotools/nwm_client_new/ParquetStore.py b/python/nwm_client_new/src/hydrotools/nwm_client_new/ParquetStore.py index 940eb072..6ef6405f 100644 --- a/python/nwm_client_new/src/hydrotools/nwm_client_new/ParquetStore.py +++ b/python/nwm_client_new/src/hydrotools/nwm_client_new/ParquetStore.py @@ -76,6 +76,9 @@ def __del__(self): def __str__(self) -> str: # Return root directory string return str(self.root) + + def __bool__(self) -> bool: + return bool(str(self)) def __getitem__(self, subdirectory: str) -> dd.DataFrame: # Set path From 0daaace2733f3cd8a8fd4973d99c148fdb521c56 Mon Sep 17 00:00:00 2001 From: "jason.regina" Date: Thu, 24 Aug 2023 15:25:41 +0000 Subject: [PATCH 2/2] bump nwm client new package to 7.2.1 --- python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py b/python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py index 2a10b3e2..065cf443 100644 --- a/python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py +++ b/python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py @@ -1 +1 @@ -__version__ = "7.1.1" +__version__ = "7.2.1"