Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit f565e64b authored by Clément Haëck's avatar Clément Haëck
Browse files

Rename box corners

parent cc8e54f2
......@@ -52,21 +52,21 @@ class Box:
self.lat_min, self.lat_max = value
def corner_ll(self):
def corner_bl(self):
"""Lower left corner."""
return [self.lon_min, self.lat_min]
def corner_ll(self, value):
def corner_bl(self, value):
self.lon_min, self.lat_min = value
def corner_ur(self):
def corner_tr(self):
"""Upper right corner."""
return [self.lon_max, self.lat_max]
def corner_ur(self, value):
def corner_tr(self, value):
self.lon_max, self.lat_max = value
......@@ -86,7 +86,7 @@ class Box:
def get_shape(self):
"""Get shapely Polygon object."""
sh = box(*self.corner_ll, *self.corner_ur)
sh = box(*self.corner_bl, *self.corner_tr)
return sh
def get_isel(self, ds, enlarge=False):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment