zospy.analyses.reports.surface_data.SurfaceDataTransformer#
- class zospy.analyses.reports.surface_data.SurfaceDataTransformer#
Bases:
ZospyTransformerTransformer for the output of the Surface Data analysis.
Methods
DATEalias of
strFLOAT(f)Floating point number with localized decimal separator.
INT(i)Integer number.
UINT(i)Unsigned integer number.
WORDalias of
strdict(args)Transform a key-value mapping.
field_group(args)Transform a group of fields under a common key to a SimpleField.
field_name(name)Transform a field name.
field_parameters(args)Transform field parameters.
field_value(value)Transform a field value.
listBuilt-in mutable sequence.
multi_string(iterable, /)Concatenate any number of strings.
parametric_field(args)Transform a field with parameters.
parametric_unit_field(args)Transform a field with parameters and a unit.
refractive_index_table(args)Convert the refractive index table to a list of dictionaries.
simple_field(args)Transform a simple field with a name and a value.
start(args)Transform the root of the parse tree.
string_list(args)List of whitespace-separated strings.
Extract the surface number from the header.
surface_powers(args)Convert the surface powers to a dictionary.
table(args)Transform a table with a header and one or more rows.
text(args)Discard text that can be ignored.
transform(tree)Transform the given tree, and return the final result
tuple(args)Transform a tuple of values.
unit(args)Transform a unit of measurement.
unit_field(args)Transform a field with a unit.
- refractive_index_table(args)#
Convert the refractive index table to a list of dictionaries.
- surface_number(n)#
Extract the surface number from the header.
- surface_powers(args)#
Convert the surface powers to a dictionary.