Commit 4098940c authored by Marco Selig's avatar Marco Selig

fix in projection_operator._multiply for integer bandsup.

parent bfa6b7ab
...@@ -9632,7 +9632,7 @@ class projection_operator(operator): ...@@ -9632,7 +9632,7 @@ class projection_operator(operator):
elif(bandsup is not None): elif(bandsup is not None):
if(np.isscalar(bandsup)): if(np.isscalar(bandsup)):
bandsup = np.arange(int(bandsup),dtype=np.int) bandsup = np.arange(int(bandsup+1),dtype=np.int)
else: else:
bandsup = np.array(bandsup,dtype=np.int) bandsup = np.array(bandsup,dtype=np.int)
if(np.any(bandsup>self.bands()-1))or(np.any(bandsup<0)): if(np.any(bandsup>self.bands()-1))or(np.any(bandsup<0)):
......
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