Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.03 KB

README.md

File metadata and controls

22 lines (16 loc) · 1.03 KB

AAS Flattening Algorithm

A (WIP) collection of algorithms for Asset Administration Shell data analysis, based on the Eclipse BaSyx Python SDK.

SubmodelFlattener

This algorithm is capable of transforming a given Submodel into a FlatSubmodelObject structure. The information contained in the FlatSubmodelObject structure can be defined using the include_-switches when instantiating the SubmodelFlattener-class. After instantiation, the SubmodelFlattener is, for example, capable of flattening a Submodel object into a .csv file, using the submodel_to_csv()-function.

Example Usage:

from basyx.aas.examples.data import example_submodel_template
from aas_flattening.submodel_flattening import SubmodelFlattener

example_submodel = example_submodel_template.create_example_submodel_template()

submodel_flattener = SubmodelFlattener(include_semantic_id=False, include_identification=False)
submodel_flattener.submodel_to_csv(example_submodel, "example.csv")