curvedmap error
If you run pykat/test/test_scripts/physics/test_maps.py
, the following error comes up:
Traceback (most recent call last):
File "test_maps.py", line 12, in <module>
itm = curvedmap('itm_Rc', 1, 1, 1)
File "/Users/ddb/git/pykat/pykat/optics/maps.py", line 1651, in __init__
surfacemap.__init__(self, name, "phase reflection", size, (np.array(size)+1)/2.0, step_size, 1e-6)
File "/Users/ddb/git/pykat/pykat/optics/maps.py", line 59, in __init__
self.Rc = Rc
File "/Users/ddb/git/pykat/pykat/optics/maps.py", line 1662, in Rc
xx, yy = np.meshgrid(self.x, self.y)
File "/Users/ddb/git/pykat/pykat/optics/maps.py", line 188, in x
return self.step_size[0] * (np.array(range(0, self.data.shape[1])) - self.center[0])
TypeError: 'int' object is not subscriptable