From 5c07d96c1c61884cfd7adf17c8da349ffd1a1563 Mon Sep 17 00:00:00 2001 From: huyenngn Date: Tue, 18 Jun 2024 15:27:23 +0200 Subject: [PATCH] fix: Fix bug for root elements --- capellambse_context_diagrams/collectors/default.py | 2 +- docs/index.md | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/capellambse_context_diagrams/collectors/default.py b/capellambse_context_diagrams/collectors/default.py index 29124c88..91d5c6ac 100644 --- a/capellambse_context_diagrams/collectors/default.py +++ b/capellambse_context_diagrams/collectors/default.py @@ -61,7 +61,7 @@ def __init__( def process_context(self): if ( self.diagram.display_parent_relation - and hasattr(self.diagram.target, "owner") + and getattr(self.diagram.target, "owner", None) is not None and not isinstance(self.diagram.target.owner, generic.PackageTypes) ): box = self._make_box( diff --git a/docs/index.md b/docs/index.md index f057b3d5..de752e4e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -178,8 +178,6 @@ Available via `.context_diagram` on a [`ModelObject`][capellambse.model.common.e
Context diagram of PC Software [PAB]
-* [`pa.PhysicalFunction`][capellambse.model.layers.pa.PhysicalFunction] (PDFB) - - ??? example "[`pa.PhysicalFunction`][capellambse.model.layers.pa.PhysicalFunction] (PDFB)" ``` py