You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[1092] Adds pushing metrics to the evaluation pipeline (ecmwf#1127)
* changes
* changes
* changes
* changes
* changes
* scores successfully pushed to MLFlow, still need to refactor
* try to batch upload all metrics form same runid
* batch logging all scores of each run_id
* get parent_run by from_run_id
* changes
* cleanups
* bug fixes
* typing issue
* Cleanup
* pdb
* integration test
---------
Co-authored-by: Jubeku <julian.kuehnert@ecmwf.int>
description = "The WeatherGenerator Machine Learning Earth System Model"
5
+
readme = "../../README.md"
6
+
requires-python = ">=3.12,<3.13"
7
+
dependencies = [
8
+
"mlflow-skinny",
9
+
"weathergen-common",
10
+
]
11
+
12
+
[dependency-groups]
13
+
dev = [
14
+
"pytest~=8.3.5",
15
+
"pytest-mock>=3.14.1",
16
+
"ruff==0.9.7",
17
+
"pyrefly==0.36.0",
18
+
]
19
+
20
+
21
+
[tool.pyrefly]
22
+
project-includes = ["src/"]
23
+
project-excludes = [
24
+
]
25
+
26
+
[tool.pyrefly.errors]
27
+
bad-argument-type = false
28
+
unsupported-operation = false
29
+
missing-attribute = false
30
+
no-matching-overload = false
31
+
bad-context-manager = false
32
+
33
+
# To do:
34
+
bad-assignment = false
35
+
bad-return = false
36
+
index-error = false
37
+
not-iterable = false
38
+
not-callable = false
39
+
40
+
41
+
42
+
43
+
# The linting configuration
44
+
[tool.ruff]
45
+
46
+
# Wide rows
47
+
line-length = 100
48
+
49
+
[tool.ruff.lint]
50
+
# All disabled until the code is formatted.
51
+
select = [
52
+
# pycodestyle
53
+
"E",
54
+
# Pyflakes
55
+
"F",
56
+
# pyupgrade
57
+
"UP",
58
+
# flake8-bugbear
59
+
"B",
60
+
# flake8-simplify
61
+
"SIM",
62
+
# isort
63
+
"I",
64
+
# Banned imports
65
+
"TID",
66
+
# Naming conventions
67
+
"N",
68
+
# print
69
+
"T201"
70
+
]
71
+
72
+
# These rules are sensible and should be enabled at a later stage.
73
+
ignore = [
74
+
# "B006",
75
+
"B011",
76
+
"UP008",
77
+
"SIM117",
78
+
"SIM118",
79
+
"SIM102",
80
+
"SIM401",
81
+
# To ignore, not relevant for us
82
+
"SIM108", # in case additional norm layer supports are added in future
83
+
"N817", # we use heavy acronyms, e.g., allowing 'import LongModuleName as LMN' (LMN is accepted)
84
+
"E731", # overly restrictive and less readable code
85
+
"N812", # prevents us following the convention for importing torch.nn.functional as F
86
+
]
87
+
88
+
[tool.ruff.lint.flake8-tidy-imports.banned-api]
89
+
"numpy.ndarray".msg = "Do not use 'ndarray' to describe a numpy array type, it is a function. Use numpy.typing.NDArray or numpy.typing.NDArray[np.float32] for example"
0 commit comments