@@ -176,7 +176,6 @@ def __init__(
176
176
document_creation_date : str | None = None ,
177
177
comments : str | None = None ,
178
178
) -> None :
179
-
180
179
self ._mapping : Structure = Structure (
181
180
** {
182
181
"element" : "Header" ,
@@ -923,7 +922,6 @@ def __init__(
923
922
bandwidth_corrected : bool | None = None ,
924
923
** kwargs ,
925
924
) -> None :
926
-
927
925
super ().__init__ (** kwargs )
928
926
929
927
self ._mapping : Structure = Structure (
@@ -1081,20 +1079,23 @@ def header(self, value: Header_IESTM2714):
1081
1079
@property
1082
1080
def spectral_quantity (
1083
1081
self ,
1084
- ) -> Literal [
1085
- "absorptance" ,
1086
- "exitance" ,
1087
- "flux" ,
1088
- "intensity" ,
1089
- "irradiance" ,
1090
- "radiance" ,
1091
- "reflectance" ,
1092
- "relative" ,
1093
- "transmittance" ,
1094
- "R-Factor" ,
1095
- "T-Factor" ,
1096
- "other" ,
1097
- ] | None :
1082
+ ) -> (
1083
+ Literal [
1084
+ "absorptance" ,
1085
+ "exitance" ,
1086
+ "flux" ,
1087
+ "intensity" ,
1088
+ "irradiance" ,
1089
+ "radiance" ,
1090
+ "reflectance" ,
1091
+ "relative" ,
1092
+ "transmittance" ,
1093
+ "R-Factor" ,
1094
+ "T-Factor" ,
1095
+ "other" ,
1096
+ ]
1097
+ | None
1098
+ ):
1098
1099
"""
1099
1100
Getter and setter property for the spectral quantity.
1100
1101
@@ -1143,20 +1144,23 @@ def spectral_quantity(
1143
1144
@property
1144
1145
def reflection_geometry (
1145
1146
self ,
1146
- ) -> Literal [
1147
- "di:8" ,
1148
- "de:8" ,
1149
- "8:di" ,
1150
- "8:de" ,
1151
- "d:d" ,
1152
- "d:0" ,
1153
- "45a:0" ,
1154
- "45c:0" ,
1155
- "0:45a" ,
1156
- "45x:0" ,
1157
- "0:45x" ,
1158
- "other" ,
1159
- ] | None :
1147
+ ) -> (
1148
+ Literal [
1149
+ "di:8" ,
1150
+ "de:8" ,
1151
+ "8:di" ,
1152
+ "8:de" ,
1153
+ "d:d" ,
1154
+ "d:0" ,
1155
+ "45a:0" ,
1156
+ "45c:0" ,
1157
+ "0:45a" ,
1158
+ "45x:0" ,
1159
+ "0:45x" ,
1160
+ "other" ,
1161
+ ]
1162
+ | None
1163
+ ):
1160
1164
"""
1161
1165
Getter and setter property for the reflection geometry.
1162
1166
@@ -1782,7 +1786,7 @@ def write(self) -> bool:
1782
1786
spectral_distribution = element
1783
1787
1784
1788
# Writing spectral data.
1785
- for ( wavelength , value ) in tstack ([self .wavelengths , self .values ]):
1789
+ for wavelength , value in tstack ([self .wavelengths , self .values ]):
1786
1790
element_child = ElementTree .SubElement (
1787
1791
spectral_distribution , mapping .data .element
1788
1792
)
0 commit comments