File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55from basyx .aas import model
66from basyx .aas .model import provider as sdk_provider
77
8+ from app import adapter
89from app .model import descriptor
910
1011PathOrIO = Union [Path , IO ]
@@ -64,16 +65,14 @@ def load_directory(directory: Union[Path, str]) -> DictDescriptorStore:
6465 :param directory: Path to the directory containing JSON descriptor files
6566 :return: Populated :class:`DictDescriptorStore`
6667 """
67- from app .adapter import ServerAASFromJsonDecoder
68-
6968 store = DictDescriptorStore ()
7069 directory = Path (directory )
7170
7271 for file in directory .iterdir ():
7372 if not file .is_file () or file .suffix .lower () != ".json" :
7473 continue
7574 with open (file ) as f :
76- data = json .load (f , cls = ServerAASFromJsonDecoder )
75+ data = json .load (f , cls = adapter . ServerAASFromJsonDecoder )
7776 for key , cls in _DESCRIPTOR_KEY_TO_CLS :
7877 for item in data .get (key , []):
7978 if isinstance (item , cls ):
You can’t perform that action at this time.
0 commit comments