|
3 | 3 | # |
4 | 4 | # SrMise by Luke Granlund |
5 | 5 | # (c) 2014 trustees of the Michigan State University |
6 | | -# (c) 2024 trustees of Columia University in the City of New York |
| 6 | +# (c) 2024 trustees of Columbia University in the City of New York |
7 | 7 | # All rights reserved. |
8 | 8 | # |
9 | 9 | # File coded by: Luke Granlund |
@@ -89,11 +89,12 @@ def __init__(self, npars, valuef, jacobianf=None, estimatef=None, Cache=None): |
89 | 89 |
|
90 | 90 | # TODO: figure out how the metadict can be used to save the functions |
91 | 91 | # and use them again when a file is loaded... |
92 | | - metadict = {} |
93 | | - metadict["npars"] = (npars, repr) |
94 | | - metadict["valuef"] = (valuef, repr) |
95 | | - metadict["jacobianf"] = (jacobianf, repr) |
96 | | - metadict["estimatef"] = (estimatef, repr) |
| 92 | + metadict = { |
| 93 | + "npars": (npars, repr), |
| 94 | + "valuef": (valuef, repr), |
| 95 | + "jacobianf": (jacobianf, repr), |
| 96 | + "estimatef": (estimatef, repr), |
| 97 | + } |
97 | 98 | BaselineFunction.__init__(self, parameterdict, formats, default_formats, metadict, None, Cache) |
98 | 99 |
|
99 | 100 | # Methods required by BaselineFunction #### |
@@ -182,7 +183,6 @@ def _transform_parametersraw(self, pars, in_format, out_format): |
182 | 183 | def _valueraw(self, pars, r): |
183 | 184 | """Return value of polynomial for the given parameters and r values. |
184 | 185 |
|
185 | | - Parameters |
186 | 186 | Parameters |
187 | 187 | pars: Sequence of parameters |
188 | 188 | pars[0] = a_0 |
|
0 commit comments