ESMCI / ESMCI/visualCaseGen

RMAX Error Printing (But Still Successful)

Open
#44 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
16
Forks
4
Avg merge
2d 17h
Merged PRs (30d)
1

Description

There is a rmax error printed even when I specified it to 20 km and it successfully run:
```
ile /glade/work/manishrv/installs/cesm3_0_beta08_gui/visualCaseGen/visualCaseGen/custom_widget_types/runoff_mapping_generator.py:165, in RunoffMappingGenerator.on_btn_generate_new_clicked(self, b)
162 _, ocn_mesh_path = self.get_ocn_grid_and_mesh()
163 suggested_rmax, suggested_fold = mapping.get_suggested_smoothing_params(ocn_mesh_path)
--> [165](https://vscode-remote+ssh-002dremote-002bcasper-002ehpc-002eucar-002eedu.vscode-resource.vscode-cdn.net/glade/work/manishrv/installs/cesm3_0_beta08_gui/visualCaseGen/visualCaseGen/custom_widget_types/runoff_mapping_generator.py:165) cvars["ROF_OCN_MAPPING_RMAX"].value = suggested_rmax
166 cvars["ROF_OCN_MAPPING_FOLD"].value = suggested_fold

File /glade/work/manishrv/conda-envs/vcg_gui/lib/python3.12/site-packages/traitlets/traitlets.py:735, in TraitType.__set__(self, obj, value)
733 if self.read_only:
734 raise TraitError('The "%s" trait is read-only.' % self.name)
--> [735](https://vscode-remote+ssh-002dremote-002bcasper-002ehpc-002eucar-002eedu.vscode-resource.vscode-cdn.net/glade/work/manishrv/conda-envs/vcg_gui/lib/python3.12/site-packages/traitlets/traitlets.py:735) self.set(obj, value)

File /glade/work/manishrv/conda-envs/vcg_gui/lib/python3.12/site-packages/traitlets/traitlets.py:709, in TraitType.set(self, obj, value)
708 def set(self, obj: HasTraits, value: S) -> None:
--> [709](https://vscode-remote+ssh-002dremote-002bcasper-002ehpc-002eucar-002eedu.vscode-resource.vscode-cdn.net/glade/work/manishrv/conda-envs/vcg_gui/lib/python3.12/site-packages/traitlets/traitlets.py:709) new_value = self._validate(obj, value)
710 assert self.name is not None
711 try:
...
352 # with the new assignment assertion when the new options_spec are called and they themselves call
353 # csp methods, e.g., check_assignments, that rely on self._assignment_assertions.
354 self._assignment_assertions.pop(var, None)

ConstraintViolation: Invalid assignment of ROF_OCN_MAPPING_RMAX to 5000.0. Reason: ROF_OCN_MAPPING_RMAX must be less than or equal to 4000 km.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.