From e437d0b051530bb3ffe4f5c4a63817fc3d13ea6d Mon Sep 17 00:00:00 2001 From: Peter Dudfield <34686298+peterdudfield@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:21:17 +0000 Subject: [PATCH] Added init.py for CI tests (#71) (#72) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Bump version: 1.0.9 → 1.0.10 [skip ci] * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] * Bump version: 1.0.10 → 1.0.11 [skip ci] * Replace H with h inside pandas' floor function (#64) Thanks @0xFrama for this * Bump version: 1.0.11 → 1.0.12 [skip ci] * Added Contribution Guide (#65) * added contribution guide * added reference to coding style * Bump version: 1.0.12 → 1.0.13 [skip ci] * docs: add roshnaeem as a contributor for doc (#67) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] --------- * Test set analysis (#60) * test set analysis * added link to nbviewer in notebook * deleted checkpoints * Delete checkpoints * delete metadata.csv * using metadata from hugging face * remove unused import * Bump version: 1.0.13 → 1.0.14 [skip ci] * docs: add bikramb98 as a contributor for code (#68) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] --------- * fetches live Enphase data at the moment it is called (#66) * fetches live Enphase data at the moment it is called replace 'user_enphase_api_key' and 'user_enphase_user_id' with the actual Enphase API key and user ID. The make_pv_data function now fetches live data from the Enphase API and combines it with the existing fake PV data This "may" not be from the time of interference, do i add make use of timestamps to enable it? * Added Flag indicating whether to use live Enphase data or not Now the user will have an option whether to use live enphase data or the default data * Updated site object to accomodate is_inverter option + created /inverters/enphase.py file * added environment variables * Bump version: 1.0.14 → 1.0.15 [skip ci] * added init.py in invertors directory * fixed the import of enphase_data --------- Co-authored-by: Rosheen Naeem Co-authored-by: BumpVersion Action Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Francesco <30957828+0xFrama@users.noreply.github.com> Co-authored-by: Bikram Baruah Co-authored-by: Aryan Bhosale <36108149+aryanbhosale@users.noreply.github.com> --- quartz_solar_forecast/data.py | 2 +- quartz_solar_forecast/inverters/__init__.py | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 quartz_solar_forecast/inverters/__init__.py diff --git a/quartz_solar_forecast/data.py b/quartz_solar_forecast/data.py index b7eb2913..e4f702b0 100644 --- a/quartz_solar_forecast/data.py +++ b/quartz_solar_forecast/data.py @@ -10,7 +10,7 @@ import xarray as xr from quartz_solar_forecast.pydantic_models import PVSite -from inverters.enphase import get_enphase_data # Added import for get_enphase_data from /inverters/enphase.py +from quartz_solar_forecast.inverters.enphase import get_enphase_data # Added import for get_enphase_data from /inverters/enphase.py ssl._create_default_https_context = ssl._create_unverified_context diff --git a/quartz_solar_forecast/inverters/__init__.py b/quartz_solar_forecast/inverters/__init__.py new file mode 100644 index 00000000..e69de29b