Interpolating output IronPython.NewTypes.System.Object_1$1


Hey everyone,

So I’m trying to interpolate some values and I have my y values as [0,45,90,135,180] which is the orientation of a building. I just want to interpolate to get the x-values when y is between 0-180 with steps of 1. My problem is the output I get when interpolating. It seems to be working fine if I just print it, but if I define I get “IronPython.NewTypes.System.Object_1$1” which is not ideal since I want to work with the data. Hopefully some of you know what is going here. I have attached the file and photo for better understanding.
Thanks in advance
Working_Weatherfile.gh (19.9 KB)

You may want to use the treehelpers from ghpythonlib

from ghpythonlib import treehelpers as th

rad_jan = th.list_to_tree(f(range(0,180,1)))

Hmm, I seem to be getting a list of IronPython objects now

I don’t have scipy installed, but you could first transform the output from the f-function so that you get a list of values instead of whatever they are encapsulated in, then pass that into the tree helper function.