Skip to content

Commit

Permalink
data fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkasirer committed Jul 28, 2023
1 parent 18e8037 commit 687b267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/compas_timber/connections/l_miter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/compas_timber/parts/beam.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 687b267

Please sign in to comment.