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

Commit 821b962

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 93e2ac4 commit 821b962

Some content is hidden

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

46 files changed

+3
-100
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
channel_indexes = [1, 8, 9]
7070
satellite_data = []
7171
for channel_index in channel_indexes:
72-
7372
# renormalize
7473
satellite_data.append(
7574
data["sat_data"][batch_index, :, :, :, channel_index] * SAT_STD.values[channel_index]

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
channel_indexes = [1, 9, 8]
9191
satellite_data = []
9292
for channel_index in channel_indexes:
93-
9493
# renormalize
9594
satellite_data.append(
9695
data["sat_data"][batch_index, :, :, :, channel_index] * SAT_STD.values[channel_index]

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

Lines changed: 0 additions & 1 deletion
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]

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
# for index in range(0, len(shape_data_raw)):
1818
for index in range(140, 150):
19-
2019
# just select the first one
2120
shape_data = shape_data_raw.iloc[index : index + 1]
2221
shapes_dict = json.loads(shape_data["geometry"].to_json())

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
duplicated_raw["Amount"] = range(0, len(duplicated_raw))
1414

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

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
duplicated_raw["Amount"] = range(0, len(duplicated_raw))
1616

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

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

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

4242

4343
def get_trace(dt):
44-
4544
# plot to check it looks right
4645
return go.Choroplethmapbox(
4746
geojson=shapes_dict,
@@ -54,7 +53,6 @@ def get_trace(dt):
5453

5554

5655
def get_frame(dt):
57-
5856
# plot to check it looks right
5957
return go.Choroplethmapbox(
6058
z=gps_data[dt],

notebooks/2021-10/2021-10-01/pydantic.py

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

1212

1313
class Satellite(BaseModel):
14-
1514
# width: int = Field(..., g=0, description="The width of the satellite image")
1615
# height: int = Field(..., g=0, description="The width of the satellite image")
1716
# num_channels: int = Field(..., g=0, description="The width of the satellite image")
@@ -49,7 +48,6 @@ class Config:
4948

5049

5150
class Batch(BaseModel):
52-
5351
batch_size: int = Field(
5452
...,
5553
g=0,

notebooks/2021-10/2021-10-08/xr_compression.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
def get_satellite_xrarray_data_array(
1010
batch_size, seq_length_5, satellite_image_size_pixels, number_sat_channels=10
1111
):
12-
1312
r = np.random.randn(
1413
# self.batch_size,
1514
seq_length_5,

notebooks/2021-10/2021-10-08/xr_pydantic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def v_image_data(cls, v):
2727

2828

2929
class Batch(BaseModel):
30-
3130
batch_size: int = 0
3231
satellite: Satellite
3332

0 commit comments

Comments
 (0)