David1
January 23, 2022, 6:06am
1
I tried to use the clear sky mode and the python code to combine the epw and stat converted WEA file together. But after I run it, the python script throws an error like the following:
Solution exception:‘EPW’ object has no attribute ‘import_data’
Is there any solution for it? How to fix this problem?
I was using the following clear sky example:
Building an EPW: Creating Normal Solar Radiation from a ASHRAE Revised Clear Sky Model (“Tau Model”)
chris
January 30, 2022, 5:33pm
2
First, you are using some very old components there. I recommend using the LBT 1.4 plugin and corresponding core libraries.
Here is the SDK page for the EPW object and you can see that there’s no import_data
method:
https://www.ladybug.tools/ladybug/docs/ladybug.epw.html
In the most recent core libraries, you can set the values of the data collection for each of the radiation fields. Like:
epw_data.direct_normal_radiation.values = direct