exist
Browse files- neo_reader/neo_node.py +1 -1
neo_reader/neo_node.py
CHANGED
@@ -38,7 +38,7 @@ class NEONode(NpzRepresentation):
|
|
38 |
self.node_type = node_type
|
39 |
self.name = name
|
40 |
act_path = Path(__file__).absolute().parent / "cmaps" / f"{self.node_type}.act"
|
41 |
-
assert act_path.
|
42 |
self.cmap = _act_to_cmap(act_path)
|
43 |
|
44 |
@overrides
|
|
|
38 |
self.node_type = node_type
|
39 |
self.name = name
|
40 |
act_path = Path(__file__).absolute().parent / "cmaps" / f"{self.node_type}.act"
|
41 |
+
assert act_path.exists(), f"Node type '{node_type}' not valid. No act file found: '{act_path}'"
|
42 |
self.cmap = _act_to_cmap(act_path)
|
43 |
|
44 |
@overrides
|