Commit 8b7f9360 authored by Theo Steininger's avatar Theo Steininger

Energy.position is now a property.

parent a46164c0
Pipeline #9992 failed with stages
in 33 minutes and 54 seconds
......@@ -13,6 +13,14 @@ class Energy(object):
def at(self, position):
return self.__class__(position)
@property
def position(self):
return self._position
@position.setter
def position(self, position):
self._position = position
@property
def value(self):
raise NotImplementedError
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment