Skip to content

Commit 5380991

Browse files
committed
Code reformatting
Update pyproject
1 parent edb25b5 commit 5380991

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

packages/bundled_models/lucie/src/lucie/inference.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,18 @@
4343
torch.cuda.set_device(0)
4444

4545

46-
def infer(device,
47-
model, steps, initial_frame, forcing, initial_forcing_idx,
48-
prog_means, prog_stds, diag_means, diag_stds, diff_stds
46+
def infer(
47+
device,
48+
model,
49+
steps,
50+
initial_frame,
51+
forcing,
52+
initial_forcing_idx,
53+
prog_means,
54+
prog_stds,
55+
diag_means,
56+
diag_stds,
57+
diff_stds,
4958
):
5059
inf_data = []
5160
model.eval()
@@ -82,8 +91,8 @@ def load_data_and_predict(
8291
device,
8392
regridded_data,
8493
preprocessed_data, # standardised data generated by dataset_generator.py
85-
model_weights_pth='model.pth',
86-
):
94+
model_weights_pth="model.pth",
95+
):
8796

8897
regridded_data = regridded_data[..., :6]
8998
true_clim = torch.tensor(np.mean(regridded_data, axis=0)).to(device).permute(2, 0, 1)

pyproject.toml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ dependencies = [
3333
"pyearthtools-zoo>=0.5.1",
3434
]
3535

36-
# FIXME remove redundant dependencies once PyEarthTools is on PyPI
3736
[project.optional-dependencies]
3837
utils = [
3938
"pyearthtools-utils>=0.5.1",
@@ -42,21 +41,12 @@ data = [
4241
"pyearthtools-data>=0.5.1",
4342
]
4443
pipeline = [
45-
"pyearthtools-utils>=0.5.1",
46-
"pyearthtools-data>=0.5.1",
4744
"pyearthtools-pipeline>=0.5.1",
4845
]
4946
training = [
50-
"pyearthtools-utils>=0.5.1",
51-
"pyearthtools-data>=0.5.1",
52-
"pyearthtools-pipeline>=0.5.1",
5347
"pyearthtools-training>=0.5.1",
5448
]
5549
zoo = [
56-
"pyearthtools-utils>=0.5.1",
57-
"pyearthtools-data>=0.5.1",
58-
"pyearthtools-pipeline>=0.5.1",
59-
"pyearthtools-training>=0.5.1",
6050
"pyearthtools-zoo>=0.5.1",
6151
]
6252
all = [

0 commit comments

Comments
 (0)