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
@property
def corner_ll(self):
def corner_bl(self):
"""Lower left corner."""
return [self.lon_min, self.lat_min]
@corner_ll.setter
def corner_ll(self, value):
@corner_bl.setter
def corner_bl(self, value):
self.lon_min, self.lat_min = value
@property
def corner_ur(self):
def corner_tr(self):
"""Upper right corner."""
return [self.lon_max, self.lat_max]
@corner_ur.setter
def corner_ur(self, value):
@corner_tr.setter
def corner_tr(self, value):
self.lon_max, self.lat_max = value
@property
......@@ -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