You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, the single method/__init__ only class is a sign of unclear design. Also, __init__ is doing multiple things: file I/O, lat/long calcs, control flow, array ops & setting member vars. It's a sign to break down the problem into smaller pieces.
The
bounding_box
class:replace_landsurface/src/replace_landsurface_with_ERA5land_IC.py
Lines 37 to 115 in 2dcc1d7
ultimately, is used to get the extents of the input file in terms of min and max longitudes and latitudes (
lonmin
,lonmax
,latmin
andlatmax
).The class does not currently hold any methods (apart from the
__init__
) or attributes apart from the lat/lon extents it needs to produce.I suggest turning it into a function to:
The text was updated successfully, but these errors were encountered: