Skip to content

Commit

Permalink
force integer division
Browse files Browse the repository at this point in the history
  • Loading branch information
timothydmorton committed Jan 4, 2019
1 parent ede7258 commit 092d2b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RealSpaceInterface/Calc2D/CalculationClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def getData(self, redshiftindex):
Valuenew = dict()
FValue_abs = np.abs(self.FValue)
_min, _max = FValue_abs.min(), FValue_abs.max()
dimensions = (self.endshape[0] / 2, self.endshape[1])
dimensions = (self.endshape[0] // 2, self.endshape[1])
for quantity, FT in FValuenew.items():
FT_abs = np.abs(FT)
FT_normalized = cv2.resize(FT_abs, dimensions).ravel()
Expand All @@ -98,7 +98,7 @@ def getInitialData(self):
return Value.ravel(), cv2.resize(
(np.abs(self.FValue) - np.abs(self.FValue).min()) /
(np.abs(self.FValue).max() - np.abs(self.FValue).min()),
(self.endshape[0] / 2, self.endshape[1])).ravel(), (minimum,
(self.endshape[0] // 2, self.endshape[1])).ravel(), (minimum,
maximum)

def getTransferData(self, redshiftindex):
Expand Down

0 comments on commit 092d2b0

Please sign in to comment.