zospy.analyses.new.reports.surface_data.SurfaceDataTransformer#
- class zospy.analyses.new.reports.surface_data.SurfaceDataTransformer#
Bases:
ZospyTransformerMethods
DATEalias of
strFLOAT(f)Floating point number with localized decimal separator.
INTalias of
intUINTalias of
intWORDalias of
strdict(args)Kay-value mapping.
field_group(args)A group of fields under a common key.
field_name(name)Field name.
field_parameters(args)Field parameters.
field_value(value)Field value.
listBuilt-in mutable sequence.
multi_string(iterable, /)Concatenate any number of strings.
parametric_field(args)A field with parameters.
parametric_unit_field(args)A field with parameters and a unit.
refractive_index_table(args)Convert the refractive index table to a list of dictionaries.
simple_field(args)A simple field with a name and a value.
start(args)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)A table with a header and one or more rows.
text(args)Text that can be ignored.
transform(tree)Transform the given tree, and return the final result
unit(args)Unit of measurement.
unit_field(args)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.