File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -1074,7 +1074,7 @@ def add_observable(
10741074 def add_parameter (
10751075 self ,
10761076 id_ : str ,
1077- estimated : bool | str | int = True ,
1077+ estimate : bool | str | int = True ,
10781078 nominal_value = None ,
10791079 scale : str = None ,
10801080 lb : Number = None ,
@@ -1089,7 +1089,7 @@ def add_parameter(
10891089
10901090 Arguments:
10911091 id_: The parameter id
1092- estimated : Whether the parameter is estimated
1092+ estimate : Whether the parameter is estimated
10931093 nominal_value: The nominal value of the parameter
10941094 scale: The parameter scale
10951095 lb: The lower bound of the parameter
@@ -1104,11 +1104,9 @@ def add_parameter(
11041104 record = {
11051105 PARAMETER_ID : [id_ ],
11061106 }
1107- if estimated is not None :
1107+ if estimate is not None :
11081108 record [ESTIMATE ] = [
1109- int (estimated )
1110- if isinstance (estimated , bool | int )
1111- else estimated
1109+ int (estimate ) if isinstance (estimate , bool | int ) else estimate
11121110 ]
11131111 if nominal_value is not None :
11141112 record [NOMINAL_VALUE ] = [nominal_value ]
Original file line number Diff line number Diff line change @@ -829,7 +829,7 @@ def add_observable(
829829 def add_parameter (
830830 self ,
831831 id_ : str ,
832- estimated : bool | str | int = True ,
832+ estimate : bool | str | int = True ,
833833 nominal_value = None ,
834834 scale : str = None ,
835835 lb : Number = None ,
@@ -844,7 +844,7 @@ def add_parameter(
844844
845845 Arguments:
846846 id_: The parameter id
847- estimated : Whether the parameter is estimated
847+ estimate : Whether the parameter is estimated
848848 nominal_value: The nominal value of the parameter
849849 scale: The parameter scale
850850 lb: The lower bound of the parameter
@@ -859,11 +859,9 @@ def add_parameter(
859859 record = {
860860 PARAMETER_ID : [id_ ],
861861 }
862- if estimated is not None :
862+ if estimate is not None :
863863 record [ESTIMATE ] = [
864- int (estimated )
865- if isinstance (estimated , bool | int )
866- else estimated
864+ int (estimate ) if isinstance (estimate , bool | int ) else estimate
867865 ]
868866 if nominal_value is not None :
869867 record [NOMINAL_VALUE ] = [nominal_value ]
You can’t perform that action at this time.
0 commit comments