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
To manage this kind of constants in a clearer way, it is possible to define one dataclass by element (lead, bismuth, lbe), and one attribute by constant.
Example:
@dataclass(frozen=True)classLeadConstants:
melting_temperature: float=600.6# K
...
TODO : check if it’s as optimized as direct variables declarations.
The text was updated successfully, but these errors were encountered:
_commons.py
file contains several constants.To manage this kind of constants in a clearer way, it is possible to define one
dataclass
by element (lead, bismuth, lbe), and one attribute by constant.Example:
TODO : check if it’s as optimized as direct variables declarations.
The text was updated successfully, but these errors were encountered: