Null output through C# script - Kernel Density (James Ramsden script)

Hello,

I’m having issues with getting a C# script to work, from James Ramsden’s site (http://james-ramsden.com/kernel-density-estimation-grasshopper/)

My output keeps giving null values and I’m not sure why. Is it how I’m placing the script, or how the data is being read from my model (not inputting the correct data type)? GH script is attached, data should be internalized.

Thanks!
kernel_density_test.gh (12.4 KB)

You placed a second runscript function in there, you need to paste the contents of that function into the provided runscript function. You may also have to set some input type hints.

Ahh it was the type hints that did the trick. Thank you!