Skip to content

Commit 4f502f2

Browse files
authored
Merge pull request #157 from metno/156-remove-height-from-cloud_area_fraction
Set leveltype and level to None.
2 parents f1b40b1 + 6db9bca commit 4f502f2

2 files changed

Lines changed: 74 additions & 57 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 69 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -18,60 +18,72 @@ jobs:
1818
python-version: ["3.10"]
1919

2020
steps:
21-
- uses: actions/checkout@v4
22-
23-
- name: Cache tox dir
24-
id: cache-tox
25-
uses: actions/cache@v4
26-
env:
27-
cache-name: cache-tox-data
28-
with:
29-
path: .tox
30-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('pyproject.toml') }}
31-
restore-keys: |
32-
${{ runner.os }}-build-${{ env.cache-name }}-
33-
${{ runner.os }}-build-
34-
${{ runner.os }}-
35-
36-
- if: ${{ steps.cache-tox-data.outputs.cache-hit != 'true' }}
37-
name: List the state of tox
38-
continue-on-error: true
39-
run: ls -lha .tox/py310/
40-
41-
- name: Set up Python ${{ matrix.python-version }}
42-
uses: actions/setup-python@v5
43-
with:
44-
python-version: ${{ matrix.python-version }}
45-
cache: 'pip' # caching pip dependencies
46-
47-
- name: Install python dependencies
48-
run: |
49-
python -m pip install tox
50-
51-
- name: Run ruff format check
52-
run: |
53-
tox -e ruff_checkformat
54-
55-
- name: Run ruff check
56-
run: |
57-
tox -e ruff_check
58-
59-
- name: Fetch dataset
60-
run: |
61-
tox -e trainingdata
62-
63-
- name: Run tox unit tests
64-
run: |
65-
tox -e py310
66-
67-
- name: Run tox security check
68-
run: |
69-
tox -e bandit
70-
71-
- name: Run inference
72-
run: |
73-
tox -e inference_CI
74-
75-
- name: Run inference_multi_CI
76-
run: |
77-
tox -e inference_multi_CI
21+
# Clean out runner data we don't use, should free up ~15 GB
22+
- run: df -h
23+
- name: "node-cleanup"
24+
run: |
25+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
26+
sudo docker image prune --all --force
27+
sudo docker builder prune -a
28+
- run: df -h
29+
30+
- uses: actions/checkout@v4
31+
32+
- name: Cache tox dir
33+
id: cache-tox
34+
uses: actions/cache@v4
35+
env:
36+
cache-name: cache-tox-data
37+
with:
38+
path: .tox
39+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('pyproject.toml') }}
40+
restore-keys: |
41+
${{ runner.os }}-build-${{ env.cache-name }}-
42+
${{ runner.os }}-build-
43+
${{ runner.os }}-
44+
45+
- if: ${{ steps.cache-tox-data.outputs.cache-hit != 'true' }}
46+
name: List the state of tox
47+
continue-on-error: true
48+
run: ls -lha .tox/py310/
49+
50+
- name: Set up Python ${{ matrix.python-version }}
51+
uses: actions/setup-python@v5
52+
with:
53+
python-version: ${{ matrix.python-version }}
54+
cache: 'pip' # caching pip dependencies
55+
56+
- name: Install python dependencies
57+
run: |
58+
python -m pip install tox
59+
60+
- name: Run ruff format check
61+
run: |
62+
tox -e ruff_checkformat
63+
64+
- name: Run ruff check
65+
run: |
66+
tox -e ruff_check
67+
68+
- name: Fetch dataset
69+
run: |
70+
tox -e trainingdata
71+
72+
- name: Run tox unit tests
73+
run: |
74+
tox -e py310
75+
76+
- name: Run tox security check
77+
run: |
78+
tox -e bandit
79+
80+
- name: Run inference
81+
run: |
82+
tox -e inference_CI
83+
84+
- name: Run inference_multi_CI
85+
run: |
86+
tox -e inference_multi_CI
87+
88+
# To warn us when we get close to disk capacity again
89+
- run: df -h

bris/conventions/metno.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ def get_ncname(self, cfname: str, leveltype: str, level: int):
2424
"air_pressure_at_sea_level",
2525
"wind_speed_of_gust",
2626
"land_sea_mask",
27+
"fog_type_cloud_area_fraction",
28+
"high_type_cloud_area_fraction",
29+
"low_type_cloud_area_fraction",
30+
"medium_type_cloud_area_fraction",
31+
"cloud_area_fraction",
2732
]:
2833
# Prevent _0m from being added at the end of variable name
2934
ncname = f"{cfname}"

0 commit comments

Comments
 (0)