From 50d22d10eb35c3923d6f72645f21d381894f9983 Mon Sep 17 00:00:00 2001 From: davidvlaminck <“david.vlaminck@mow.vlaanderen.be”> Date: Tue, 21 Nov 2023 20:40:14 +0100 Subject: [PATCH] updated otlmow-converter to 0.13 and changed class_directory to model_directory --- otlmow_template/SubsetTemplateCreator.py | 8 ++++---- pyproject.toml | 2 +- requirements.txt | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/otlmow_template/SubsetTemplateCreator.py b/otlmow_template/SubsetTemplateCreator.py index 7e91992..ae034e1 100644 --- a/otlmow_template/SubsetTemplateCreator.py +++ b/otlmow_template/SubsetTemplateCreator.py @@ -32,10 +32,10 @@ def generate_template_from_subset(self, path_to_subset: Path, path_to_template_f otl_objects = [] for class_object in list(filter(lambda cl: cl.abstract == 0, collector.classes)): - class_directory = None - if kwargs is not None and 'class_directory' in kwargs: - class_directory = kwargs['class_directory'] - instance = dynamic_create_instance_from_uri(class_object.objectUri, directory=class_directory) + model_directory = None + if kwargs is not None and 'model_directory' in kwargs: + model_directory = kwargs['model_directory'] + instance = dynamic_create_instance_from_uri(class_object.objectUri, model_directory=model_directory) if instance is None: continue instance._assetId.fill_with_dummy_data() diff --git a/pyproject.toml b/pyproject.toml index a7e59c5..4e9cddb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ classifiers = [ ] requires-python = ">=3.8" dependencies = [ - 'otlmow-converter >= 0.12', + 'otlmow-converter >= 0.13', 'otlmow-modelbuilder >= 0.11', ] diff --git a/requirements.txt b/requirements.txt index 7ee8abf..ab21f4e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -otlmow-converter >= 0.12 +otlmow-converter >= 0.13 otlmow-modelbuilder >= 0.11 attrs>=22.2.0 coverage>=3.7.1 @@ -8,5 +8,4 @@ pluggy>=1.0.0 pytest>=6.2.5 pytest-cov>=4.0.0 pytest-subtests>=0.8.0 -numpy>=1.18 openpyxl~=3.1.2 \ No newline at end of file