# NDR - TypeError

**URL:** <https://community.naturalcapitalalliance.org/t/ndr-typeerror/429>\
**Category:** Software Support\
**Tags:** ndr\
**Created:** [August 31, 2019, 5:01pm UTC](https://community.naturalcapitalalliance.org/t/ndr-typeerror/429 "2019-08-31T17:01:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wat1](https://avatars.discourse-cdn.com/v4/letter/w/e9c0ed/32.png) [@wat1](https://community.naturalcapitalalliance.org/u/wat1)\
**Post date:** [August 31, 2019, 5:01pm UTC](https://community.naturalcapitalalliance.org/t/ndr-typeerror/429/1 "2019-08-31T17:01:05Z")

</div>

Hi,

I’m getting a TypeError with the NDR, saying ufunc ‘isfinite’ not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule “safe”. My inputs are tif files, shapefile and csv. I had some cutline polygon errors with the watershed vector, but I have fixed them and this error appears.I looked through the tif files and can’t see any obvious problems.  
Any help would be greatly appreciated!

[InVEST-Nutrient-Delivery-Ratio-Model-(NDR)-log-2019-08-31–17\_47\_19.txt](https://community.naturalcapitalalliance.org/uploads/short-url/dWixk9wSNSScrKiTA4xM5UTacm0.txt) (4.4 KB)

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [September 3, 2019, 5:05pm UTC](https://community.naturalcapitalalliance.org/t/ndr-typeerror/429/2 "2019-09-03T17:05:55Z")

</div>

Hi @wat1, It’s unclear just from the logfile what’s going on here. Could you attach or send your model inputs so we can take a look?

Thanks,  
James

---

<div class="post-metadata">

**Author:** ![wat1](https://avatars.discourse-cdn.com/v4/letter/w/e9c0ed/32.png) [@wat1](https://community.naturalcapitalalliance.org/u/wat1)\
**Post date:** [September 17, 2019, 2:36pm UTC](https://community.naturalcapitalalliance.org/t/ndr-typeerror/429/3 "2019-09-17T14:36:51Z")

</div>

Hi! Sorry for the delay in replying but I eventually fixed the problem. I was using the wrong vector file for the watersheds. Very simple error, can’t believe I didn’t spot it. I couldn’t see it for looking!!
