Commit dde3cb6
authored
fix(training): provide more informative error when user specifies inexistent node attribute (#663)
Small fix to make the error message more informative. Instead of just
telling a user that the specified attribute does not exist in the graph
data, it also provides a list of the ones that are available. So for
instance, if one mistakenly specified "cutout_mask" instead of "cutout",
they will know right away what the problem is.1 parent 04c5321 commit dde3cb6
File tree
1 file changed
+5
-2
lines changed- training/src/anemoi/training/losses/scalers
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
0 commit comments