Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 74b8356

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6a6925e commit 74b8356

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+14
-124
lines changed

notebooks/2021-08/2021-08-25/video.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import cv2
44
import numpy as np
55
import pandas as pd
6-
import plotly
76
import plotly.graph_objects as go
87

98
from nowcasting_dataset.dataset import SAT_MEAN, SAT_STD, NetCDFDataset
@@ -69,7 +68,6 @@
6968
channel_indexes = [1, 8, 9]
7069
satellite_data = []
7170
for channel_index in channel_indexes:
72-
7371
# renormalize
7472
satellite_data.append(
7573
data["sat_data"][batch_index, :, :, :, channel_index] * SAT_STD.values[channel_index]

notebooks/2021-08/2021-08-26/video.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import cv2
44
import numpy as np
55
import pandas as pd
6-
import plotly
7-
import plotly.express as px
86
import plotly.graph_objects as go
97

108
# get satellite image, currently from https://github.com/openclimatefix/py-staticmaps
@@ -90,7 +88,6 @@
9088
channel_indexes = [1, 9, 8]
9189
satellite_data = []
9290
for channel_index in channel_indexes:
93-
9491
# renormalize
9592
satellite_data.append(
9693
data["sat_data"][batch_index, :, :, :, channel_index] * SAT_STD.values[channel_index]

notebooks/2021-09/2021-09-06/gsp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737

3838
# find out if point is in gsp
39-
from shapely.geometry import Point, Polygon
39+
from shapely.geometry import Point
4040

4141
_pnts = [Point(3, 3), Point(8, 8), Point(0, 51.38)]
4242
pnts = gpd.GeoDataFrame(geometry=_pnts, index=["A", "B", "C"])

notebooks/2021-09/2021-09-07/gsp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939

4040
# find out if point is in gsp
41-
from shapely.geometry import Point, Polygon
41+
from shapely.geometry import Point
4242

4343
_pnts = [Point(3, 3), Point(8, 8), Point(0, 51.38)]
4444
pnts = gpd.GeoDataFrame(geometry=_pnts, index=["A", "B", "C"])

notebooks/2021-09/2021-09-08/dan.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import gcsfs
21
import xarray as xr
32

43
filename = "gs://solar-pv-nowcasting-data/satellite/EUMETSAT/SEVIRI_RSS/OSGB36/all_zarr_int16_single_timestep.zarr/"

notebooks/2021-09/2021-09-13/remove_hash.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
for filenames in [train_filenames, validation_filenames]:
2222
for file in train_filenames:
23-
2423
print(file)
2524

2625
filename = file.split("/")[-1]
@@ -30,7 +29,7 @@
3029

3130
try:
3231
rename_file(remote_file=file, new_filename=new_filename)
33-
except Exception as e:
32+
except Exception:
3433
pass
3534
else:
3635
print(f"Skipping {filename}")

notebooks/2021-09/2021-09-14/gsp_centroid.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from nowcasting_dataset.data_sources.gsp.eso import (
66
get_gsp_metadata_from_eso,
7-
get_gsp_shape_from_eso,
87
)
98
from nowcasting_dataset.geospatial import WGS84_CRS
109

@@ -16,7 +15,6 @@
1615

1716
# for index in range(0, len(shape_data_raw)):
1817
for index in range(140, 150):
19-
2018
# just select the first one
2119
shape_data = shape_data_raw.iloc[index : index + 1]
2220
shapes_dict = json.loads(shape_data["geometry"].to_json())

notebooks/2021-09/2021-09-14/gsp_duplicated.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import plotly.graph_objects as go
44

55
from nowcasting_dataset.data_sources.gsp.eso import (
6-
get_gsp_metadata_from_eso,
76
get_gsp_shape_from_eso,
87
)
98

@@ -13,7 +12,6 @@
1312
duplicated_raw["Amount"] = range(0, len(duplicated_raw))
1413

1514
for i in range(0, 8, 2):
16-
1715
# just select the first one
1816
duplicated = duplicated_raw.iloc[i : i + 2]
1917
shapes_dict = json.loads(duplicated["geometry"].to_json())

notebooks/2021-09/2021-09-28/get_raw_sun_data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from nowcasting_dataset.data_sources.gsp.eso import get_gsp_metadata_from_eso
2424
from nowcasting_dataset.data_sources.sun.raw_data_load_save import (
2525
get_azimuth_and_elevation,
26-
save_to_zarr,
2726
)
2827

2928
# set up

notebooks/2021-09/2021-09-29/gsp_duplicated.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import plotly.graph_objects as go
44

55
from nowcasting_dataset.data_sources.gsp.eso import (
6-
get_gsp_metadata_from_eso,
76
get_gsp_shape_from_eso,
87
)
98
from nowcasting_dataset.geospatial import WGS84_CRS
@@ -15,7 +14,6 @@
1514
duplicated_raw["Amount"] = range(0, len(duplicated_raw))
1615

1716
for i in range(0, 8, 2):
18-
1917
# just select the first one
2018
duplicated = duplicated_raw.iloc[i : i + 2]
2119
shapes_dict = json.loads(duplicated["geometry"].to_json())

0 commit comments

Comments
 (0)