Skip to content

Commit bc81582

Browse files
committed
Bump utopya version requirement; bump github actions version to v4; remove dantro from requirements (included in utopya); fix wrong ValueError in include.neural_net
1 parent 58399fa commit bc81582

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/pytest.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
python-version: ["3.8", "3.9", "3.10", "3.11"]
2626

2727
steps:
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929
- uses: actions/setup-python@v4
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232
cache: 'pip' # caching pip dependencies
3333
- name: Set up Python
34-
uses: actions/setup-python@v3
34+
uses: actions/setup-python@v4
3535
with:
3636
python-version: ${{ matrix.python-version }}
3737
- name: Install dependencies
@@ -71,7 +71,7 @@ jobs:
7171
jsonPath: totals.percent_covered_display
7272

7373
- name: Upload artifact
74-
uses: actions/upload-pages-artifact@v1
74+
uses: actions/upload-pages-artifact@v3
7575
with:
7676
path: './coverage'
7777

@@ -93,6 +93,6 @@ jobs:
9393
onlyRemoveDeployments: true
9494

9595
- name: Deploy coverage report
96-
uses: actions/deploy-pages@v2
96+
uses: actions/deploy-pages@v4
9797
id: deployment
9898

include/neural_net.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def get_single_layer_func(layer_cfg: Union[str, dict]) -> callable:
105105
_f = ACTIVATION_FUNCS["linear"][0]
106106

107107
else:
108-
raise ValueError(f"Unrecognized activation function {cfg}!")
108+
raise ValueError(f"Unrecognized activation function {layer_cfg}!")
109109

110110
def get_activation_funcs(n_layers: int, cfg: dict) -> List[callable]:
111111
"""Extracts the activation functions from the config. The config is a dictionary containing the

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
dantro>=0.20.0b0
21
h5py>=3.7.0
32
matplotlib
43
numpy
@@ -9,7 +8,7 @@ ruamel.base
98
scipy
109
setuptools
1110
torch
12-
utopya>=1.1.3
11+
utopya>=1.3.7
1312
xarray
1413
coloredlogs
1514
pre-commit

0 commit comments

Comments
 (0)