@@ -172,14 +172,16 @@ def value(self) -> float:
172172 Returns
173173 -------
174174 float
175- value of the flux .
175+ Flux type value .
176176
177177 """
178178 match self ._flux_type .__name__ :
179179 case "Luminous" :
180180 return self ._flux_type .luminous_value
181181 case "Radiant" :
182182 return self ._flux_type .radiant_value
183+ case "LuminousIntensity" :
184+ return self ._flux_type .luminous_intensity_value
183185 case _:
184186 raise ValueError (f"Unsupported flux type: { self ._flux_type .__name__ } " )
185187
@@ -202,6 +204,8 @@ def value(self, value: float) -> None:
202204 self ._flux_type .luminous_value = value
203205 case "Radiant" :
204206 self ._flux_type .radiant_value = value
207+ case "LuminousIntensity" :
208+ self ._flux_type .luminous_intensity_value = value
205209 case _:
206210 raise ValueError (f"Unsupported flux type: { self ._flux_type .__name__ } " )
207211
@@ -1062,50 +1066,6 @@ def set_luminous_intensity(self):
10621066 """
10631067 self ._flux_type = self ._flux .luminous_intensity_flux
10641068
1065- @property
1066- def value (self ) -> float :
1067- """Get flux type's value.
1068-
1069- Returns
1070- -------
1071- float
1072- Flux type value.
1073-
1074- """
1075- match self ._flux_type .__name__ :
1076- case "Luminous" :
1077- return self ._flux_type .luminous_value
1078- case "Radiant" :
1079- return self ._flux_type .radiant_value
1080- case "LuminousIntensity" :
1081- return self ._flux_type .luminous_intensity_value
1082- case _:
1083- raise ValueError (f"Unsupported flux type: { self ._flux_type .__name__ } " )
1084-
1085- @value .setter
1086- def value (self , value : float ) -> None :
1087- """Set flux type's value.
1088-
1089- Parameters
1090- ----------
1091- value: float
1092- Value of the flux.
1093-
1094- Returns
1095- -------
1096- None
1097-
1098- """
1099- match self ._flux_type .__name__ :
1100- case "Luminous" :
1101- self ._flux_type .luminous_value = value
1102- case "Radiant" :
1103- self ._flux_type .radiant_value = value
1104- case "LuminousIntensity" :
1105- self ._flux_type .luminous_intensity_value = value
1106- case _:
1107- raise ValueError (f"Unsupported flux type: { self ._flux_type .__name__ } " )
1108-
11091069 class ExitanceConstant :
11101070 """Type of surface source existence : existence constant.
11111071
0 commit comments