From 687b2670a58c70338e13f7ea9161014719045e0c Mon Sep 17 00:00:00 2001 From: Chen Kasirer Date: Fri, 28 Jul 2023 15:10:13 +0200 Subject: [PATCH] data fixes --- src/compas_timber/connections/l_miter.py | 2 +- src/compas_timber/parts/beam.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/compas_timber/connections/l_miter.py b/src/compas_timber/connections/l_miter.py index 524543c51..864930fe8 100644 --- a/src/compas_timber/connections/l_miter.py +++ b/src/compas_timber/connections/l_miter.py @@ -42,7 +42,7 @@ class LMiterJoint(Joint): SUPPORTED_TOPOLOGY = JointTopology.TOPO_L - def __init__(self, assembly, beam_a, beam_b, cutoff=None): + def __init__(self, assembly=None, beam_a=None, beam_b=None, cutoff=None): super(LMiterJoint, self).__init__(assembly, [beam_a, beam_b]) self.beam_a = beam_a self.beam_b = beam_b diff --git a/src/compas_timber/parts/beam.py b/src/compas_timber/parts/beam.py index cc751aefa..1ea5a48d4 100644 --- a/src/compas_timber/parts/beam.py +++ b/src/compas_timber/parts/beam.py @@ -266,9 +266,7 @@ def is_identical(self, other): @classmethod def from_data(cls, data): """Alternative to None default __init__ parameters.""" - obj = cls(**data) - obj.data = data - return obj + return cls(**data) def add_feature(self, feature, apply=False): """Adds a feature to this beam.