Closed zgxn closed 5 years ago
Thank you! I'll approve this. One thing - if the method is not Holmgren or Freeman, should we put out a warning to the user?
For example -
if method not in ['Holmgren','Freeman']:
cfg.log.warn('Ignoring exponent: exponent is only valid for Holmgren/Freeman methods')
Hi Daniel, yes, that's a good idea.
On Mon, Apr 8, 2019 at 10:20 AM Daniel Livingston notifications@github.com wrote:
Thank you! I'll approve this. One thing - if the method is not Holmgren or Freeman, should we put out a warning to the user?
For example -
if method is not in valid_methods: cfg.log.warn('Ignoring exponent: exponent is only valid for Holmgren/Freeman methods')
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lanl/LaGriT/pull/150#issuecomment-480923915, or mute the thread https://github.com/notifications/unsubscribe-auth/AqajgRpfU72q5WrcAW9Sp38jNhfoMhPyks5ve3pwgaJpZM4cioo3 .
-- Ilhan Özgen Xian, PhD EESA, Lawrence Berkeley National Laboratory https://eesa.lbl.gov/
Although the argument
exponent
is defined inwatershed_delineation
-methodwatershedDelineation
, the calling method indem_class
(watershed_delineation
) did not have this argument, so the user could not set an exponent at the top level. This caused delineation methods such asHolmgren
andFreeman
to fail.This commit gives an
exponent
argument todem_class
-methodwatershed_delineation
and sets this exponent as input towatershed_delineation
-methodwatershedDelineation
.The interactive part still does not get
exponent
as an argument.fixes #149