Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
akarich73 committed Nov 10, 2024
1 parent 5556418 commit c68e6af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions barra2_dl/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import pandas as pd


class Geodetic(float):
class _Geodetic(float):
"""Float specialization base class for Latitude and Longitude.
Adds _check_limits on min max to avoid code duplication on setting and checking float value.
Expand All @@ -39,13 +39,13 @@ def _check_limits(self):
raise ValueError(f"{self.name} must be from {self.min} to {self.max}")


class Latitude(Geodetic):
class Latitude(_Geodetic):
min = -90
max = 90
name = "Lat"


class Longitude(Geodetic):
class Longitude(_Geodetic):
min = -180
max = 180
name = "Lon"
Expand Down

0 comments on commit c68e6af

Please sign in to comment.