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
In stormevents there's this assumption in one of the automated tests that if an empty geometry is passed to the coops_stations_within_region, the return data frame will be empty. Right now that test is broken because the logic in searvey is that:
@pmav99, @carolakaiser in your opinions, does it make sense to keep searvey as it is and just update the stormevents test or should I modify how coops_stations_within_region works in searvey?
What was the use-case for adding this code @carolakaiser? Do you have a case where if you pass empty geometry then you want to get all of the stations? Or are you passing None instead of empty geometry to get all the stations? If you're usecase is covered by passing None, then we can change this to if region is None: then both of our use-cases are covered.
What do you think?
The text was updated successfully, but these errors were encountered:
In
stormevents
there's this assumption in one of the automated tests that if an empty geometry is passed to thecoops_stations_within_region
, the return data frame will be empty. Right now that test is broken because the logic insearvey
is that:searvey/searvey/coops.py
Lines 824 to 827 in d654ad6
@pmav99, @carolakaiser in your opinions, does it make sense to keep
searvey
as it is and just update thestormevents
test or should I modify howcoops_stations_within_region
works insearvey
?What was the use-case for adding this code @carolakaiser? Do you have a case where if you pass empty geometry then you want to get all of the stations? Or are you passing
None
instead of empty geometry to get all the stations? If you're usecase is covered by passingNone
, then we can change this toif region is None:
then both of our use-cases are covered.What do you think?
The text was updated successfully, but these errors were encountered: