mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Fix bug adding brick namespace in ed0b1c5
brick graph has bool evaluation too
This commit is contained in:
@@ -456,7 +456,7 @@ class Brick(bonsai.core.tool.Brick):
|
||||
|
||||
@classmethod
|
||||
def add_namespace(cls, alias: str, uri: str) -> None:
|
||||
assert BrickStore.graph
|
||||
assert BrickStore.graph is not None
|
||||
BrickStore.graph.bind(alias, Namespace(uri))
|
||||
BrickStore.load_namespaces()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user