Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing files should raise an exception #26

Open
kdeloach opened this issue Mar 8, 2016 · 0 comments
Open

Missing files should raise an exception #26

kdeloach opened this issue Mar 8, 2016 · 0 comments

Comments

@kdeloach
Copy link

kdeloach commented Mar 8, 2016

So as not to be confused by exceptions that occur as a direct consequence of missing files. There's no point to continue executing the RWD algorithm if the source data cannot be loaded.

Ex.

Error running Point_Watershed_Function
Traceback (most recent call last):
  File "/opt/rwd/src/api/main.py", line 66, in run_rwd
    output_path,
  File "/opt/rwd/rwd/Rapid_Watershed_Delineation.py", line 211, in Point_Watershed_Function
    Output_dir)
  File "/opt/rwd/rwd/RWSDelin_Utilities.py", line 516, in Get_Watershed_Attributes
    Basin_length=extract_value_from_raster(plen_file_with_path,Outlet_Point)
  File "/opt/rwd/rwd/RWSDelin_Utilities.py", line 221, in extract_value_from_raster
    gt = src_ds.GetGeoTransform()
AttributeError: 'NoneType' object has no attribute 'GetGeoTransform'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant