You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case that the rated Power of a load is zero, the powerfactor can not be calculated and will be nan. pydantic.confloat(ge=0, le=1, allow_inf_nan=True) does not work pydantic/pydantic-core#1037
need to adapt rounded()and weighted_powerfactor()
adapt powerfactor test
BTW: con* is marked as deprecated for pydantic v.3 --> use te.Annotated[float, Field(ge=0, le=1, allow_inf_nan=True, strict=True)]
The text was updated successfully, but these errors were encountered:
In the case that the rated Power of a load is zero, the powerfactor can not be calculated and will be nan.
pydantic.confloat(ge=0, le=1, allow_inf_nan=True)
does not workpydantic/pydantic-core#1037
rounded()
andweighted_powerfactor()
BTW: con* is marked as deprecated for pydantic v.3 --> use
te.Annotated[float, Field(ge=0, le=1, allow_inf_nan=True, strict=True)]
The text was updated successfully, but these errors were encountered: