Skip to content

Commit 83e6cac

Browse files
authored
file name fixes for the new tests (#138)
1 parent 50741d0 commit 83e6cac

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

quartz_solar_forecast/inverters/README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,20 @@ Open-Source-Quartz-Solar-Forecast/
1616
│ └── inverters/
1717
├── tests/
1818
│ └── data/
19-
│ └── test_make_pv_data.py
19+
│ | └── test_process_pv_data.py
20+
│ └── inverters/
21+
│ └── test_process_enphase_data.py
2022
```
2123

2224
## What each Directory holds
2325

2426
1. `example/`
27+
2528
* `inverter_example.py`: Makes input data depending on the inverter type and compares it with the type with no data and runs the ML model along with a comparison plot using `plotly`. This is the file that you need to run in order to run the ML model. An example output with Enphase is demonstrated below:
2629

2730
![example_enphase_output](https://github.com/aryanbhosale/Open-Source-Quartz-Solar-Forecast/assets/36108149/7127a00e-c081-4f5e-a342-2be2e2efe00c)
28-
2931
2. `quartz_solar_forecast`:
32+
3033
* `data.py`: Contains the `make_pv_data()` function, that conditionally checks the inverter type and constructs and `xarray` dataframe
3134
* `pydantic_models.py`: Contains the PVSite class
3235
* `inverters/`:
@@ -35,17 +38,21 @@ Open-Source-Quartz-Solar-Forecast/
3538
* We need the past 7 days data formatted in intervals of 5 minutes for this model. Given below is an example with Enphase
3639

3740
![example_enphase_data](https://github.com/aryanbhosale/Open-Source-Quartz-Solar-Forecast/assets/36108149/436c688c-2e59-4047-abfc-754acb629343)
38-
3941
* Once all the processing is done, make sure that your return type is of `pd.DataFrame` that has 2 colums, namely
4042

4143
* `timestamp`: `timestamp=datetime.fromtimestamp(interval_end_time_in_unix_epochs, tz=timezone.utc).strftime('%Y-%m-%d %H:%M:%S')`, and then convert the timestamp column to `pd.to_datetime`
4244
* `power_kw`: Power in **KiloWatts.** An example is shown below with the formatted `pd.DataFrame`
4345
![example_enphase_formatted_dataframe](https://github.com/aryanbhosale/Open-Source-Quartz-Solar-Forecast/assets/36108149/482b2f2a-e3f5-4a1a-97f1-2d322a1444d5)
44-
4546
3. `tests/`
47+
4648
* `data/`
47-
* `test_make_pv_data.py`: Mocks the `make_pv_data()` function `data.py` file using various type of inverters and the `None` value too using `pytest`
48-
* Run this using `pytest tests/data/test_make_pv_data.py`
49+
50+
* `test_process_pv_data.py`: Mocks the `process_pv_data()` function in the `data.py` file using various type of inverters and the `None` value too using `pytest`
51+
* Run this using `pytest tests/data/test_process_pv_data.py`
52+
* `inverters/`
53+
54+
* `test_process_enphase_data.py`: Mocks the `process_enphase_data()` function in the `/inverters/enphase.py` file using `pytest`
55+
* Run this using `pytest tests/inverters/test_process_enphase_data.py`
4956

5057
## How to Setup
5158

0 commit comments

Comments
 (0)