Removed deprecated np.float

numpy 1.20 deprecates np.float, which was only ever an alias for
``float``.  I've replaced all occurrences of np.float with float, as
recommended.  There should be no change in functionality.
This commit is contained in:
Richard Bowman 2021-03-30 17:40:19 +01:00
parent 17b19d7dfd
commit cd5e32b843
4 changed files with 16 additions and 16 deletions

View file

@ -277,11 +277,11 @@ class SangaDeltaStage(SangaStage):
logging.debug(self.R_camera)
# Transformation matrix converting delta into cartesian
x_fac: np.float = -1 * np.multiply(
x_fac: float = -1 * np.multiply(
np.divide(2, np.sqrt(3)), np.divide(self.flex_b, self.flex_h)
)
y_fac: np.float = -1 * np.divide(self.flex_b, self.flex_h)
z_fac: np.float = np.multiply(
y_fac: float = -1 * np.divide(self.flex_b, self.flex_h)
z_fac: float = np.multiply(
np.divide(1, 3), np.divide(self.flex_b, self.flex_a)
)