Skip to content

Commit

Permalink
CI Fixes (#108)
Browse files Browse the repository at this point in the history
* Formatting

* Remove Python 3.7 support

* Update CODEOWNERS

* Remove dysfunctional tests

* Formatting
  • Loading branch information
jasonjewik committed Jul 11, 2023
1 parent 9afe308 commit 1eb5035
Show file tree
Hide file tree
Showing 34 changed files with 18 additions and 532 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
* @jasonjewik
src/climate_learn/data @prakhar6sharma
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion src/climate_learn/data/processing/cmip6_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"u_component_of_wind": "m/s",
"v_component_of_wind": "m/s",
"temperature": "C",
"specific_humidity": "kg/kg"
"specific_humidity": "kg/kg",
}

DEFAULT_PRESSURE_LEVELS = [50, 250, 500, 600, 700, 850, 925]
Expand Down
8 changes: 4 additions & 4 deletions src/climate_learn/data/processing/era5_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@
"surface_pressure": "Pa",
"toa_incident_solar_radiation": "J/m^2",
"total_precipitation": "m",
"total_cloud_cover": None, # dimensionless
"land_sea_mask": None, # dimensionless
"orography": None, # dimensionless
"total_cloud_cover": None, # dimensionless
"land_sea_mask": None, # dimensionless
"orography": None, # dimensionless
"geopotential": "m^2/s^2",
"u_component_of_wind": "m/s",
"v_component_of_wind": "m/s",
"temperature": "K",
"relative_humidity": "%",
"specific_humidity": "kg/kg",
"voriticity": "1/s",
"potential_vorticity": "K m^2 / (kg s)"
"potential_vorticity": "K m^2 / (kg s)",
}

DEFAULT_PRESSURE_LEVELS = [50, 250, 500, 600, 700, 850, 925]
Expand Down
4 changes: 3 additions & 1 deletion src/climate_learn/utils/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ def load_model_module(
raise RuntimeError("Please specify 'architecture' or 'model'")
elif architecture:
print(f"Loading architecture: {architecture}")
model, optimizer, lr_scheduler = load_architecture(task, data_module, architecture)
model, optimizer, lr_scheduler = load_architecture(
task, data_module, architecture
)
elif isinstance(model, str):
print(f"Loading model: {model}")
model_cls = MODEL_REGISTRY.get(model, None)
Expand Down

This file was deleted.

14 changes: 0 additions & 14 deletions tests/data/experimental/climate_dataset/args/test_era5_args.py

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions tests/data/experimental/climate_dataset/test_climate_dataset.py

This file was deleted.

16 changes: 0 additions & 16 deletions tests/data/experimental/climate_dataset/test_era5.py

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions tests/data/experimental/dataset/args/test_map_dataset_args.py

This file was deleted.

21 changes: 0 additions & 21 deletions tests/data/experimental/dataset/args/test_shard_dataset_args.py

This file was deleted.

21 changes: 0 additions & 21 deletions tests/data/experimental/dataset/test_map_dataset.py

This file was deleted.

21 changes: 0 additions & 21 deletions tests/data/experimental/dataset/test_shard_dataset.py

This file was deleted.

13 changes: 0 additions & 13 deletions tests/data/experimental/task/args/test_downscaling_args.py

This file was deleted.

16 changes: 0 additions & 16 deletions tests/data/experimental/task/args/test_forecasting_args.py

This file was deleted.

13 changes: 0 additions & 13 deletions tests/data/experimental/task/args/test_task_args.py

This file was deleted.

15 changes: 0 additions & 15 deletions tests/data/experimental/task/test_downscaling.py

This file was deleted.

18 changes: 0 additions & 18 deletions tests/data/experimental/task/test_forecasting.py

This file was deleted.

15 changes: 0 additions & 15 deletions tests/data/experimental/task/test_task.py

This file was deleted.

0 comments on commit 1eb5035

Please sign in to comment.