Skip to content

ParmEst: Avoid ComponentUID in favor of Suffixes during model build #3663

@djlaky

Description

@djlaky

Summary

Avoid using strings/component UID lookups in the modern parmest interface. @sscini

Rationale

The current interface still uses a ComponentUID lookup where we could be using the suffix to adjust things.

for name, val in thetavals.items():
theta_cuid = ComponentUID(name)
theta_object = theta_cuid.find_component_on(instance)
if val is not None:
# print("Fixing",vstr,"at",str(thetavals[vstr]))
theta_object.fix(val)
else:
# print("Freeing",vstr)
theta_object.unfix()

Description

Need to use suffix names instead. This code may become deprecated after using the new update_<> code has been added. #3650

Also relevant: #3575

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions