From 38eedffd80a16e6b00f1c9a66aa9ba629a6820a9 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 21 Apr 2025 17:52:38 +0500 Subject: [PATCH] tool.Ifc - add some doc-strings --- src/bonsai/bonsai/tool/ifc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bonsai/bonsai/tool/ifc.py b/src/bonsai/bonsai/tool/ifc.py index 8a2de3b742..573a0ecd5c 100644 --- a/src/bonsai/bonsai/tool/ifc.py +++ b/src/bonsai/bonsai/tool/ifc.py @@ -258,6 +258,7 @@ class Ifc(bonsai.core.tool.Ifc): @classmethod def resolve_uri(cls, uri: str) -> str: + """Get absolute path based on the active IFC file.""" if os.path.isabs(uri): return uri ifc_path = cls.get_path() @@ -267,6 +268,10 @@ class Ifc(bonsai.core.tool.Ifc): @classmethod def get_uri(cls, uri: str | Path, use_relative_path: bool = False) -> str: + """Get path relative to the active IFC file, if `use_relative_path` is `True`. + + If `use_relative_path` is `False` - get absolute filepath from uri. + """ if not use_relative_path: return Path(uri).absolute().resolve().as_posix() uri = Path(uri)