cgmorton / et-demands

Crop ET Demands Model
5 stars 5 forks source link

Add Check to Verify Spatial Calibration Shapefiles Exists #29

Closed cpearson1 closed 6 years ago

cpearson1 commented 6 years ago

If running in spatially varying calibration mode (i.e. spatial_cal_flag = True), add a check in et_cell.py (~line 221) to make sure all crops exist in the spatial calibration shapefiles.

If files are not present stop program and re-run "build_spatial_crop_params_arcpy.py" .

cpearson1 commented 6 years ago

2 Checks Added ~Line 226: 1) If folder is empty sys.exit() 2) If missing crops sys.exit()

Is sys.exit() the correct way to stop code?