Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 8, 2024
1 parent e7ae63a commit 48a5683
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
2 changes: 1 addition & 1 deletion data/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ and then a files such as:
- Jan.csv.gz
- Feb.csv.gz
- ...
- Dec.csv.gz
- Dec.csv.gz
Original file line number Diff line number Diff line change
Expand Up @@ -636,4 +636,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
1 change: 0 additions & 1 deletion scripts/5min/Load_parquet_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
# Specify the location of your parquet file
file_dir = '/Volumes/Sara_external_drive/PhD/PIPs/OpenClimateFix/Data Huggingface/5min.parquet'
data = pd.read_parquet(file_dir, engine = 'pyarrow')

5 changes: 2 additions & 3 deletions scripts/5min/Plot_one_system_one_day.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Select and plot one day of PV data from one PV system
# Select and plot one day of PV data from one PV system

import pandas as pd
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -26,6 +26,5 @@
hours_dataformat = pd.date_range(start="2021-04-01",end="2021-04-02", freq="3H")
hours_dataformat = hours_dataformat.strftime("%Y-%m-%d %H:%M:%S+00:00").tolist()
hours_plot = ['12 am', '3 am', '6 am', '9 am', '12 pm', '3 pm', '6 pm', '9 pm', '12 am']
plt.xticks(hours_dataformat, hours_plot, rotation=30)
plt.xticks(hours_dataformat, hours_plot, rotation=30)
plt.show()

5 changes: 2 additions & 3 deletions scripts/5min/Plot_ten_systems_one_year.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
PV_data = pd.DataFrame(columns = ["generation_wh","timestamp","ss_id"])
PV_systems = [13308, 13057, 7548, 7542, 10589, 6891, 9369, 11438, 18989, 7243]
PV_data = data[data['ss_id'].isin(PV_systems)]

# Select data from one year
start_day = '2020-01-01'
end_day = '2021-01-01'
Expand All @@ -27,6 +27,5 @@
hours_dataformat = pd.date_range(start="2020-01-01",end="2020-12-31", freq="MS")
hours_dataformat = hours_dataformat.strftime("%Y-%m-%d %H:%M:%S+00:00").tolist()
hours_plot = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
plt.xticks(hours_dataformat, hours_plot, rotation=30)
plt.xticks(hours_dataformat, hours_plot, rotation=30)
plt.show()

1 change: 0 additions & 1 deletion scripts/5min/examples/.gitkeep
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

0 comments on commit 48a5683

Please sign in to comment.