The following python code was made to read a jpw file that will read its values and export them as a list of floats.
import rhinoscriptsyntax as rs
import System.Decimal as decimal
with open(file, 'r', 0) as worldParamFile: for line in worldParamFile: paramList.append(decimal.Parse(line)) return paramList
a = worldParam(worldFile)
The problem that I have is that variable ‘a’ should export floats but instead I get:
- A list of Boolean if I connect it directly to a component
- A list of string if I connect it to a panel
Can you tell me how can I rectify this problem ?
Thank you in advance
terreno-norte-17_1.zip (249 Bytes)
GIS - World File Parameters - Python 20180813.002_003.gh (8.6 KB)