6.2.3. pyafv.PhysicalParams.replace

PhysicalParams.replace(**changes)[source]

Returns a new instance of PhysicalParams with 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:

PhysicalParams

Hint

This is a convenience method wrapping dataclasses.replace(), e.g., to change A0 and delta of an existing instance phys: phys_new = phys.replace(A0=5.0, delta=0.3).