Skip to content

Commit

Permalink
FIX: fix doc Model.set_serr_sigma_parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
nghi-truyen committed Mar 27, 2024
1 parent 3b2dcfc commit c0f9f25
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions smash/core/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1885,11 +1885,6 @@ def set_serr_sigma_parameters(self, key: str, value: Numeric | NDArray[Any]):
--------
>>> from smash.factory import load_dataset
>>> setup, mesh = load_dataset("cance")
Set the structural error mu mapping to ``'Linear'`` (see `smash.Model`). Default value in the
``Cance`` dataset is ``'Zero'`` (equivalent to no mu mapping)
>>> setup["serr_mu_mapping"] = "Linear"
>>> model = smash.Model(setup, mesh)
Set a specific value to a structural error sigma parameter vector
Expand Down Expand Up @@ -1960,7 +1955,7 @@ def set_serr_sigma_parameters(self, key: str, value: Numeric | NDArray[Any]):
ValueError: Invalid value for model serr_sigma_parameter 'sg0'. serr_sigma_parameter domain [-1, -1]
is not included in the feasible domain ]0, inf[
Finally, trying to run the Model with a negative value set to the structural error mu parameter
Finally, trying to run the Model with a negative value set to the structural error sigma parameter
``'sg0'`` leads to the same error
>>> model.forward_run()
Expand Down

0 comments on commit c0f9f25

Please sign in to comment.