From 79d96c08493c734362112e99a72f43ed3779c67f Mon Sep 17 00:00:00 2001 From: "jia.zhou" <48254033+JiaZhou-PU@users.noreply.github.com> Date: Wed, 25 Jun 2025 09:42:19 -0500 Subject: [PATCH 1/3] add output name --- src/watts/plugin_accert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/watts/plugin_accert.py b/src/watts/plugin_accert.py index f10699a..3998a90 100644 --- a/src/watts/plugin_accert.py +++ b/src/watts/plugin_accert.py @@ -87,7 +87,7 @@ def total_cost(self) -> float: @property def account_table(self) -> pd.DataFrame: - account_file = self.base_path / 'ACCERT_updated_account.xlsx' + account_file = next((file for file in self.base_path.glob('*_updated_account.xlsx')), None) if Path(account_file).exists(): return pd.read_excel(account_file) else: From e643157ab5aeb788be19e4687897c93bcb4f6dde Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 26 Jun 2025 06:50:12 -0500 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7258d09..2555e08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Changes + +* Update ACCERT output name + ([#120](https://github.com/watts-dev/watts/pull/120)) + ## [0.5.2] ### Added From 430f30b6b625ca349594dc6435482e4d1b78210a Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 26 Jun 2025 06:53:13 -0500 Subject: [PATCH 3/3] Simplify use of iterator --- src/watts/plugin_accert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/watts/plugin_accert.py b/src/watts/plugin_accert.py index 3998a90..dce11ce 100644 --- a/src/watts/plugin_accert.py +++ b/src/watts/plugin_accert.py @@ -87,7 +87,7 @@ def total_cost(self) -> float: @property def account_table(self) -> pd.DataFrame: - account_file = next((file for file in self.base_path.glob('*_updated_account.xlsx')), None) + account_file = next(self.base_path.glob('*_updated_account.xlsx'), None) if Path(account_file).exists(): return pd.read_excel(account_file) else: