Skip to content

Commit 3824d21

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

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pipeline/tests/test_regressions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,13 @@ 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
323323

324324
# Test with "all=True"
325-
results = om.sands.BrainAtlasVersion.by_name("Julich-Brain Atlas", all=True)
325+
results = om.sands.AnatomicalAtlasVersion.by_name("Julich-Brain Atlas", all=True)
326326
assert len(results) == 30
327327
assert all(r.short_name == "Julich-Brain Atlas" for r in results)
328328
assert len(set(r.id for r in results)) == len(results)

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)