Skip to content

Commit

Permalink
Update Black format to version 24.2 (#150)
Browse files Browse the repository at this point in the history
Minor changes in a couple of files.
  • Loading branch information
leouieda authored Feb 20, 2024
1 parent bf9740d commit da569d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 2 additions & 6 deletions boule/_ellipsoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,7 @@ def gravity_pole(self):
/ (1.5 * ((1 + 3 * ratio**2) * arctan - 3 * ratio))
)
result = (
self.geocentric_grav_const
* (1 + self._emm * aux)
/ self.semimajor_axis**2
self.geocentric_grav_const * (1 + self._emm * aux) / self.semimajor_axis**2
)
return result

Expand Down Expand Up @@ -415,9 +413,7 @@ def prime_vertical_radius(self, sinlat):
.. [2] See https://en.wikipedia.org/wiki/Earth_radius#Prime_vertical
"""
return self.semimajor_axis / np.sqrt(
1 - self.first_eccentricity**2 * sinlat**2
)
return self.semimajor_axis / np.sqrt(1 - self.first_eccentricity**2 * sinlat**2)

def geodetic_to_spherical(self, longitude, latitude, height):
"""
Expand Down
4 changes: 1 addition & 3 deletions boule/tests/test_ellipsoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,7 @@ def test_prime_vertical_radius(ellipsoid):
)
# Computed expected values
prime_vertical_radius_equator = ellipsoid.semimajor_axis
prime_vertical_radius_pole = (
ellipsoid.semimajor_axis**2 / ellipsoid.semiminor_axis
)
prime_vertical_radius_pole = ellipsoid.semimajor_axis**2 / ellipsoid.semiminor_axis
prime_vertical_radius_45 = ellipsoid.semimajor_axis**2 / np.sqrt(
0.5 * ellipsoid.semimajor_axis**2 + 0.5 * ellipsoid.semiminor_axis**2
)
Expand Down

0 comments on commit da569d3

Please sign in to comment.