Skip to content
Snippets Groups Projects
Commit 3cfdecbe authored by Torben Miny's avatar Torben Miny
Browse files

Merge branch 'improvement/executable_examples' into 'master'

examples: Add shebang, executable-bit and absolute imports

See merge request acplt/pyaas!15
parents f7fa7f8b 21c96b4a
No related branches found
No related tags found
1 merge request!15examples: Add shebang, executable-bit and absolute imports
Pipeline #252992 passed
#!/usr/bin/env python3
# This work is licensed under a Creative Commons CCZero 1.0 Universal License. # This work is licensed under a Creative Commons CCZero 1.0 Universal License.
# See http://creativecommons.org/publicdomain/zero/1.0/ for more information. # See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
""" """
...@@ -6,7 +7,7 @@ reference ...@@ -6,7 +7,7 @@ reference
""" """
# Import all PyI40AAS classes from model package # Import all PyI40AAS classes from model package
from .. import model from aas import model
# In this tutorial, you get a step by step guide on how to create an asset administration shell and its required # In this tutorial, you get a step by step guide on how to create an asset administration shell and its required
# objects. First, you need an asset for which you want to create an asset administration shell. So, first, you will # objects. First, you need an asset for which you want to create an asset administration shell. So, first, you will
......
#!/usr/bin/env python3
# This work is licensed under a Creative Commons CCZero 1.0 Universal License. # This work is licensed under a Creative Commons CCZero 1.0 Universal License.
# See http://creativecommons.org/publicdomain/zero/1.0/ for more information. # See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
""" """
...@@ -8,9 +9,9 @@ import io ...@@ -8,9 +9,9 @@ import io
import json import json
# Import all PyI40AAS classes from model package # Import all PyI40AAS classes from model package
from .. import model from aas import model
from ..adapter.json import json_serialization, json_deserialization from aas.adapter.json import json_serialization, json_deserialization
from ..model import Asset, AssetAdministrationShell, Submodel from aas.model import Asset, AssetAdministrationShell, Submodel
# In this tutorial you get a step by step guide how to serialize objects of the meta model according to # In this tutorial you get a step by step guide how to serialize objects of the meta model according to
# 'Details of the Asset Administration Shell'. Therefore, you will learn how to serialize one object and an object # 'Details of the Asset Administration Shell'. Therefore, you will learn how to serialize one object and an object
......
#!/usr/bin/env python3
# This work is licensed under a Creative Commons CCZero 1.0 Universal License. # This work is licensed under a Creative Commons CCZero 1.0 Universal License.
# See http://creativecommons.org/publicdomain/zero/1.0/ for more information. # See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
""" """
...@@ -5,8 +6,8 @@ Tutorial for storing asset administration shells, submodels and assets ...@@ -5,8 +6,8 @@ Tutorial for storing asset administration shells, submodels and assets
""" """
# Import all PyI40AAS classes from model package # Import all PyI40AAS classes from model package
from .. import model from aas import model
from ..model import Asset, AssetAdministrationShell, Submodel from aas.model import Asset, AssetAdministrationShell, Submodel
# In this tutorial you get a step by step guide how to store an asset administration shell and its needed objects. For # In this tutorial you get a step by step guide how to store an asset administration shell and its needed objects. For
# storing an asset administration shell including the asset and submodels you need an object store. In an object # storing an asset administration shell including the asset and submodels you need an object store. In an object
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment