Skip to content

Commit

Permalink
calling function of the converter to clear list of list attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvlaminck committed Dec 2, 2024
1 parent 1757603 commit 070bad4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions otlmow_template/SubsetTemplateCreator.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,8 @@ def generate_basic_template(self, path_to_subset: Path, path_to_template_file_an
instance.fill_with_dummy_data()
otl_objects.append(instance)

# TODO: check if this is needed, as the above line should cover this
attributen = collector.find_attributes_by_class(class_object)
for attribute_object in attributen:
attr = getattr(instance, '_' + attribute_object.name)
attr.fill_with_dummy_data()
DotnotationHelper.clear_list_of_list_attributes(instance)

converter = OtlmowConverter()
converter.from_objects_to_file(file_path=temporary_path,
sequence_of_objects=otl_objects, **kwargs)
Expand Down

0 comments on commit 070bad4

Please sign in to comment.