Skip to content

Commit

Permalink
Update core_class.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daavoo authored Aug 23, 2019
1 parent 05c7c7c commit 9184333
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyntcloud/core_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class PyntCloud(object):
"""A Pythonic Point Cloud."""

def __init__(self, points, mesh=None, structures={}, **kwargs):
def __init__(self, points, mesh=None, structures=None, **kwargs):
"""Create PyntCloud.
Parameters
Expand All @@ -44,6 +44,7 @@ def __init__(self, points, mesh=None, structures={}, **kwargs):
self.points = points
self.mesh = mesh
self.structures = StructuresDict()
structures = structures or {}
for key, val in structures.items():
self.structures[key] = val
for key, val in kwargs.items():
Expand Down

0 comments on commit 9184333

Please sign in to comment.