Skip to content

Commit 75de126

Browse files
author
openMINDS pipeline
committed
build triggered by submodule version
1 parent 893dc97 commit 75de126

96 files changed

Lines changed: 103 additions & 96 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

openminds/collection.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ def save(self, path, individual_files=False, include_empty_properties=False):
8181
8282
A list of the file paths created.
8383
"""
84+
# in case a user has added additional child nodes _after_ adding the parent node to the collection
85+
# we first re-add all child nodes to the collection.
86+
# This is probably not the most elegant or fast way to do this, but it is simple and robust.
87+
for node in tuple(self.nodes.values()):
88+
for linked_node in node.links:
89+
self._add_node(linked_node)
90+
# Now we can actually save the nodes
8491
if not individual_files:
8592
if os.path.exists(path):
8693
if not os.path.isfile(path):

openminds/v3/chemicals/chemical_mixture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ChemicalMixture(LinkedMetadata):
2626
formatting="text/markdown",
2727
multiline=True,
2828
description="Mention of what deserves additional attention or notice.",
29-
instructions="Enter any additional remarks concerning this chemical mixture.",
29+
instructions="Enter any additional remarks concering this chemical mixture.",
3030
),
3131
Property(
3232
"has_part",

openminds/v3/chemicals/chemical_substance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ChemicalSubstance(LinkedMetadata):
2626
formatting="text/markdown",
2727
multiline=True,
2828
description="Mention of what deserves additional attention or notice.",
29-
instructions="Enter any additional remarks concerning this chemical substance.",
29+
instructions="Enter any additional remarks concering this chemical substance.",
3030
),
3131
Property(
3232
"lookup_label",

openminds/v3/controlled_terms/action_status_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class ActionStatusType(LinkedMetadata):
7777
min_items=1,
7878
formatting="text/plain",
7979
description="Words or expressions used in the same language that have the same or nearly the same meaning in some or all senses.",
80-
instructions="Enter one or several synonyms (including abbreviations) for this controlled term.",
80+
instructions="Enter one or several synonyms (inlcuding abbreviations) for this controlled term.",
8181
),
8282
]
8383

openminds/v3/controlled_terms/age_category.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class AgeCategory(LinkedMetadata):
7777
min_items=1,
7878
formatting="text/plain",
7979
description="Words or expressions used in the same language that have the same or nearly the same meaning in some or all senses.",
80-
instructions="Enter one or several synonyms (including abbreviations) for this controlled term.",
80+
instructions="Enter one or several synonyms (inlcuding abbreviations) for this controlled term.",
8181
),
8282
]
8383

openminds/v3/controlled_terms/analysis_technique.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class AnalysisTechnique(LinkedMetadata):
7777
min_items=1,
7878
formatting="text/plain",
7979
description="Words or expressions used in the same language that have the same or nearly the same meaning in some or all senses.",
80-
instructions="Enter one or several synonyms (including abbreviations) for this controlled term.",
80+
instructions="Enter one or several synonyms (inlcuding abbreviations) for this controlled term.",
8181
),
8282
]
8383

openminds/v3/controlled_terms/anatomical_axes_orientation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class AnatomicalAxesOrientation(LinkedMetadata):
7777
min_items=1,
7878
formatting="text/plain",
7979
description="Words or expressions used in the same language that have the same or nearly the same meaning in some or all senses.",
80-
instructions="Enter one or several synonyms (including abbreviations) for this controlled term.",
80+
instructions="Enter one or several synonyms (inlcuding abbreviations) for this controlled term.",
8181
),
8282
]
8383

openminds/v3/controlled_terms/anatomical_identification_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class AnatomicalIdentificationType(LinkedMetadata):
7777
min_items=1,
7878
formatting="text/plain",
7979
description="Words or expressions used in the same language that have the same or nearly the same meaning in some or all senses.",
80-
instructions="Enter one or several synonyms (including abbreviations) for this controlled term.",
80+
instructions="Enter one or several synonyms (inlcuding abbreviations) for this controlled term.",
8181
),
8282
]
8383

openminds/v3/controlled_terms/anatomical_plane.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class AnatomicalPlane(LinkedMetadata):
7777
min_items=1,
7878
formatting="text/plain",
7979
description="Words or expressions used in the same language that have the same or nearly the same meaning in some or all senses.",
80-
instructions="Enter one or several synonyms (including abbreviations) for this controlled term.",
80+
instructions="Enter one or several synonyms (inlcuding abbreviations) for this controlled term.",
8181
),
8282
]
8383

openminds/v3/controlled_terms/annotation_criteria_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class AnnotationCriteriaType(LinkedMetadata):
7777
min_items=1,
7878
formatting="text/plain",
7979
description="Words or expressions used in the same language that have the same or nearly the same meaning in some or all senses.",
80-
instructions="Enter one or several synonyms (including abbreviations) for this controlled term.",
80+
instructions="Enter one or several synonyms (inlcuding abbreviations) for this controlled term.",
8181
),
8282
]
8383

0 commit comments

Comments
 (0)