Skip to content

Commit

Permalink
Merge pull request #45 from markusReinert/enhancements
Browse files Browse the repository at this point in the history
Make Python aware of required arguments
  • Loading branch information
mankoff authored Nov 14, 2023
2 parents 15b617b + 80f1661 commit b403fec
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions discharge.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,16 @@ class discharge(object):
If point: Accesses nearest outlet
If ring: Accesses all outlets within ring
upstream: If True, include all upstream ice outlets for any land outlet
quiet: If False, print the progress of the current operation
Outputs
--------
Returns GeoPandas GeoDataFrame if outlets() called
Returns xarray Dataset if discharge() called
"""

def __init__(self, base=None, roi=None, upstream=False, quiet=True):
if roi is None:
print("Error: Not initialized with ROI")
return
def __init__(self, base, roi, upstream=False, quiet=True):
self._roi = roi
if base is None:
print("Error: Not initialized with 'base' folder")
return
self._base = base
self._quiet = quiet
self._upstream = upstream
Expand Down

0 comments on commit b403fec

Please sign in to comment.