mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +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
|
@classmethod
|
||||||
def add_namespace(cls, alias: str, uri: str) -> None:
|
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.graph.bind(alias, Namespace(uri))
|
||||||
BrickStore.load_namespaces()
|
BrickStore.load_namespaces()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user