Small update to make it py2 compatible.

parent 8e315620
Pipeline #11803 passed with stage
in 4 minutes and 17 seconds
......@@ -598,7 +598,7 @@ class Circle(Curve):
self._ax = ax
self._update = True
points = self.get_points()
super().__init__(points=points)
super(Circle, self).__init__(points=points)
@property
def radius(self):
......@@ -626,7 +626,7 @@ class Circle(Curve):
old_val = copy.deepcopy(getattr(self, name))
try:
setattr(self, name, value)
#self.update()
self.update()
except:
setattr(self, name, old_val)
raise ValueError("Failed setting value %s=%s" % (name[1:], value))
......
......@@ -1557,7 +1557,7 @@ class Block(object):
if distz is None:
raise ValueError("distz needs to be specified for extrude")
elif len(distz) == 2 and isinstance(distz[0], (float, int)):
distz = np.linspace(*distz, nk)
distz = np.linspace(*distz, n=nk)
elif isinstance(distz, list) and isinstance(distz[0], list):
distz = distfunc(distz)
......
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