Skip to content

Commit 141d89b

Browse files
committed
Update regression test to reflect changes in SANDS
1 parent 0f9a729 commit 141d89b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pipeline/tests/test_regressions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def test_issue0069(om):
316316
result = om.sands.ParcellationEntity.by_name("NODa,b")
317317
assert result.abbreviation == "NODa,b"
318318

319-
result = om.sands.CommonCoordinateSpace.by_name("MEBRAINS population-based monkey brain template")
319+
result = om.sands.CommonCoordinateFramework.by_name("MEBRAINS population-based monkey brain template")
320320
assert result.full_name == "MEBRAINS population-based monkey brain template"
321321

322322
assert om.controlled_terms.BiologicalOrder.by_name("rodents") == om.controlled_terms.BiologicalOrder.by_name("Rodentia") != None

pipeline/translator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def get_type(property):
122122
openminds_module = generate_python_name(class_to_module_map[class_name])
123123
else:
124124
openminds_module = generate_python_name(openminds_module_from_type)
125+
assert openminds_module != "types", f"This probably means {class_name} isn't in class_to_module_map"
125126
types.append(f"openminds.{self._version_module}.{openminds_module}.{class_name}")
126127
if len(types) == 1:
127128
types = f'"{types[0]}"'

0 commit comments

Comments
 (0)