diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bee8a64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__ diff --git a/tmgpm.py b/tmgpm.py index f681047..c401feb 100755 --- a/tmgpm.py +++ b/tmgpm.py @@ -148,7 +148,7 @@ def height(self, t): t (float) -- Time expressed as a fractional number (e.g. 9.5 for 09h30m Returns: - Tide height in mmillimeters + integer -- Tide height in millimeters """ # Initialize tide height at the station Z0 value # Z0 is stored in cm and the tide calculations are done in millimeters, @@ -167,8 +167,8 @@ def height(self, t): phij = self.phi0[j] + t / 24.0 * (j * 360 + delta_j) height += Rj * cos(radians(phij)) - # and return the value - return height + # and return the value casted as an integer + return int(height) def _init_harmonic_data(self): self.A = [[0. for _ in range(11)] for _ in range(5)]