I am having difficulty finding the CEC files needed in Grasshopper. The sam.nrel.gov/libraries link is just a blank page. At one point I thought I had found a link (see bellow) but now this file does not function with the ImportCECPhotovoltaicsModule.
From what I can tell, the issue is caused by a new or different csv column order. Do we have a solution? Is there a plan for an update that will work with the new file format? Or is there a link to updated CEC files? My company relies heavily on this model for use in solar calculations.
In the mean time, I wish to provide a copy of the file we have been using so that others might use it too. This file is not up to date, and is from Early 2019, but seeing as there is no version of it online that I can find, I felt like I should share my stop gap measure. However, I currently can no since I’m still a “new member”. When this Changes I will upload my file.
Side idea since you seem to be able to develop this, is it possible you can add a member index in as well? It would be nice to look up a panel by name instead of by index number, that way if the order in the file changes it doesn’t effect the output.
Hello - I am having a similar issue. Although the fix didn’t work… when i download the CEC.gh file and open the 'CEC Modules.csv" I get the following error:
Current document units is in Millimeters
Conversion to Meters will be applied = 0.001
Runtime error (UnboundLocalException): Local variable ‘mountType_library’ referenced before assignment.
Traceback:
line 256, in main, “”
line 417, in script
Hi @djordje , Even i am getting the same error. I downloaded the latest library from github (https://github.com/NREL/SAM/tree/develop/deploy/libraries). Sandia .csv file works fine but CEC .csv file pops out error. Can you help with this. I am attaching the gh files for your convenience.PV_CEC.gh (385.0 KB)
Hello @djordje@devang, After testing above files i concluded that :
1> The CEC component edited by @devang is compaitable to the above .csv file shared. It doesn’t work with the latest .csv file in github (sandia file works fine).
2> The CEC component that has been edited is Version 0.068 and it has not been edited to latest CEC component version 0.069 in github page.
Hope this is sorted out for uninterrupted workflow. Thank you for the help.