from_dict

classmethod PhysicsParameters.from_dict(d)

Creates a new PhysicsParameters object from a dict of values.

Parameters:

d (dict[str, Any]) – A dict with keys corresponding to any of this class’s attributes. Default values are set for keys not included in the dict.

Returns:

A new PhysicsParameters object with the values specified by d.

Return type:

PhysicsParameters