@@ -82,13 +82,13 @@ def as_dict(self):
82
82
}
83
83
84
84
@classmethod
85
- def from_dict (cls , d : dict ) -> Self :
85
+ def from_dict (cls , dct : dict ) -> Self :
86
86
"""Initialize distance cutoff from dict.
87
87
88
88
Args:
89
- d : Dict representation of the distance cutoff.
89
+ dct (dict) : Dict representation of the distance cutoff.
90
90
"""
91
- return cls (d ["value" ])
91
+ return cls (dct ["value" ])
92
92
93
93
94
94
class AngleCutoffFloat (float , StrategyOption ):
@@ -116,13 +116,13 @@ def as_dict(self):
116
116
}
117
117
118
118
@classmethod
119
- def from_dict (cls , d ) :
119
+ def from_dict (cls , dct : dict ) -> Self :
120
120
"""Initialize angle cutoff from dict.
121
121
122
122
Args:
123
- d : Dict representation of the angle cutoff.
123
+ dct (dict) : Dict representation of the angle cutoff.
124
124
"""
125
- return cls (d ["value" ])
125
+ return cls (dct ["value" ])
126
126
127
127
128
128
class CSMFloat (float , StrategyOption ):
@@ -154,7 +154,7 @@ def from_dict(cls, dct: dict) -> Self:
154
154
"""Initialize CSM from dict.
155
155
156
156
Args:
157
- d : Dict representation of the CSM.
157
+ dct (dict) : Dict representation of the CSM.
158
158
"""
159
159
return cls (dct ["value" ])
160
160
@@ -188,7 +188,7 @@ def from_dict(cls, dct: dict) -> Self:
188
188
"""Initialize additional condition from dict.
189
189
190
190
Args:
191
- d : Dict representation of the additional condition.
191
+ dct (dict) : Dict representation of the additional condition.
192
192
"""
193
193
return cls (dct ["value" ])
194
194
@@ -1350,7 +1350,7 @@ def as_dict(self):
1350
1350
}
1351
1351
1352
1352
@classmethod
1353
- def from_dict (cls , dct ) :
1353
+ def from_dict (cls , dct : dict ) -> Self :
1354
1354
"""Construct AngleNbSetWeight from dict representation."""
1355
1355
return cls (aa = dct ["aa" ])
1356
1356
@@ -1418,7 +1418,7 @@ def from_dict(cls, dct: dict) -> Self:
1418
1418
"""Initialize from dict.
1419
1419
1420
1420
Args:
1421
- dct: Dict representation of NormalizedAngleDistanceNbSetWeight.
1421
+ dct (dict) : Dict representation of NormalizedAngleDistanceNbSetWeight.
1422
1422
1423
1423
Returns:
1424
1424
NormalizedAngleDistanceNbSetWeight.
@@ -1722,7 +1722,7 @@ def from_dict(cls, dct: dict) -> Self:
1722
1722
"""Initialize from dict.
1723
1723
1724
1724
Args:
1725
- dct: Dict representation of SelfCSMNbSetWeight.
1725
+ dct (dict) : Dict representation of SelfCSMNbSetWeight.
1726
1726
1727
1727
Returns:
1728
1728
SelfCSMNbSetWeight.
@@ -1960,7 +1960,7 @@ def from_dict(cls, dct: dict) -> Self:
1960
1960
"""Initialize from dict.
1961
1961
1962
1962
Args:
1963
- dct: Dict representation of DeltaCSMNbSetWeight.
1963
+ dct (dict) : Dict representation of DeltaCSMNbSetWeight.
1964
1964
1965
1965
Returns:
1966
1966
DeltaCSMNbSetWeight.
@@ -2026,7 +2026,7 @@ def from_dict(cls, dct: dict) -> Self:
2026
2026
"""Initialize from dict.
2027
2027
2028
2028
Args:
2029
- dct: Dict representation of CNBiasNbSetWeight.
2029
+ dct (dict) : Dict representation of CNBiasNbSetWeight.
2030
2030
2031
2031
Returns:
2032
2032
CNBiasNbSetWeight.
@@ -2096,7 +2096,7 @@ def from_description(cls, dct: dict) -> Self:
2096
2096
"""Initialize weights from description.
2097
2097
2098
2098
Args:
2099
- dct: Dictionary description.
2099
+ dct (dict) : Dictionary description.
2100
2100
2101
2101
Returns:
2102
2102
CNBiasNbSetWeight.
@@ -2334,7 +2334,7 @@ def from_dict(cls, dct: dict) -> Self:
2334
2334
"""Initialize from dict.
2335
2335
2336
2336
Args:
2337
- dct: Dict representation of DistanceAngleAreaNbSetWeight.
2337
+ dct (dict) : Dict representation of DistanceAngleAreaNbSetWeight.
2338
2338
2339
2339
Returns:
2340
2340
DistanceAngleAreaNbSetWeight.
@@ -2404,7 +2404,7 @@ def from_dict(cls, dct: dict) -> Self:
2404
2404
"""Initialize from dict.
2405
2405
2406
2406
Args:
2407
- dct: Dict representation of DistancePlateauNbSetWeight.
2407
+ dct (dict) : Dict representation of DistancePlateauNbSetWeight.
2408
2408
2409
2409
Returns:
2410
2410
DistancePlateauNbSetWeight.
@@ -2471,7 +2471,7 @@ def from_dict(cls, dct: dict) -> Self:
2471
2471
"""Initialize from dict.
2472
2472
2473
2473
Args:
2474
- dct: Dict representation of AnglePlateauNbSetWeight.
2474
+ dct (dict) : Dict representation of AnglePlateauNbSetWeight.
2475
2475
2476
2476
Returns:
2477
2477
AnglePlateauNbSetWeight.
@@ -2552,7 +2552,7 @@ def from_dict(cls, dct: dict) -> Self:
2552
2552
"""Initialize from dict.
2553
2553
2554
2554
Args:
2555
- dct: Dict representation of DistanceNbSetWeight.
2555
+ dct (dict) : Dict representation of DistanceNbSetWeight.
2556
2556
2557
2557
Returns:
2558
2558
DistanceNbSetWeight.
@@ -2636,7 +2636,7 @@ def from_dict(cls, dct: dict) -> Self:
2636
2636
"""Initialize from dict.
2637
2637
2638
2638
Args:
2639
- dct: Dict representation of DeltaDistanceNbSetWeight.
2639
+ dct (dict) : Dict representation of DeltaDistanceNbSetWeight.
2640
2640
2641
2641
Returns:
2642
2642
DeltaDistanceNbSetWeight.
0 commit comments