Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #380 from simphony/update_datasets
Browse files Browse the repository at this point in the history
Problem: can't use `name` property in subclasses properly
  • Loading branch information
mehdisadeghi authored Jan 27, 2017
2 parents f7b475a + 07f4534 commit b4d8254
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion simphony/cuds/particles.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, name):
self._particles = {}
self._bonds = {}
self._data = DataContainer()
self.name = name
self._name = name

self._items_count = {
CUBA.PARTICLE: lambda: self._particles,
Expand All @@ -47,6 +47,14 @@ def __init__(self, name):

self._uid = uuid.uuid4()

@property
def name(self):
return self._name

@name.setter
def name(self, value):
self._name = value

@property
def uid(self):
return self._uid
Expand Down

0 comments on commit b4d8254

Please sign in to comment.