Skip to content

Commit 164c1d8

Browse files
committed
Generate specific import rule if slme_individuals is overriden.
If both the default module type and the module type for a specific import are set to `slme`, but the specific module has a `slme_individuals` setting that is different from the default (group-level) setting, then that module will require a specific rule to honor the module-level `slme_individuals` setting. closes #1305
1 parent 0faf094 commit 164c1d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

odk/odk.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,9 @@ def _derive_fields(self, project):
417417
if p.base_iris is None:
418418
p.base_iris = [ 'http://purl.obolibrary.org/obo/' + p.id.upper() ]
419419
if (p.is_large or p.module_type != self.module_type or
420-
(p.module_type == 'slme' and p.module_type_slme != self.module_type_slme)):
420+
(p.module_type == 'slme' and
421+
(p.module_type_slme != self.module_type_slme or
422+
p.slme_individuals != self.slme_individuals))):
421423
# This module will require a distinct rule
422424
self.special_products.append(p)
423425

0 commit comments

Comments
 (0)