7.2.3. pyafv.PhysicalParams.replace
- PhysicalParams.replace(**changes)[source]
Returns a new instance of
PhysicalParamswith specified fields replaced by new values.- Parameters:
**changes (float | None) – Field names and their new values to be replaced.
- Returns:
New instance with the updated fields.
- Return type:
Hint
This is a convenience method wrapping
dataclasses.replace(), e.g., to changeA0anddeltaof an existing instance phys:phys_new = phys.replace(A0=5.0, delta=0.3).