From 2977fb0db3a6c6a7979d4b5dedf20535c6d892c0 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 3 Sep 2024 09:17:08 -0700 Subject: [PATCH] updated syntax checks --- README.md | 4 ++-- afc/optModel.py | 2 +- afc/radiance/forecast.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 39cf30b..fda4024 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Advanced Facade Controller (AFC) -![Actions Status](https://github.com/LBNL-ETA/AFC/workflows/Syntax/badge.svg) -![Actions Status](https://github.com/LBNL-ETA/AFC/workflows/UnitTests/badge.svg) +[![Syntax](https://github.com/LBNL-ETA/AFC/actions/workflows/syntax-test.yml/badge.svg)](https://github.com/LBNL-ETA/AFC/actions/workflows/syntax-test.yml) +[![UnitTests](https://github.com/LBNL-ETA/AFC/actions/workflows/unit-test.yml/badge.svg)](https://github.com/LBNL-ETA/AFC/actions/workflows/unit-test.yml) #### Predictive Control Solution for Advanced Facades and Integrated Energy Systems ---------------------------------------------------------------------------------------- diff --git a/afc/optModel.py b/afc/optModel.py index 6a7cdfa..179a515 100644 --- a/afc/optModel.py +++ b/afc/optModel.py @@ -8,7 +8,7 @@ """ # pylint: disable=bare-except, too-many-locals, invalid-name, too-many-statements -# pylint: disable=pointless-string-statement +# pylint: disable=pointless-string-statement, possibly-used-before-assignment import os import sys diff --git a/afc/radiance/forecast.py b/afc/radiance/forecast.py index 489f9f0..e4ba9e5 100644 --- a/afc/radiance/forecast.py +++ b/afc/radiance/forecast.py @@ -365,6 +365,7 @@ def process_wpi(self, wpi_grid): wpi = wpi_all else: print(f'ERROR: wpi_loc "{self.wpi_loc}" not available.') + wpi = None return wpi, wpi_all, wpi_center, wpi_23