Ah, thanks, @marentette . There was a typo in my sample code. You should have been passing an empty dictionary instead of an empty list. Here is the correct sample code:
from honeybee_energy.lib.programtypes import lib_dict_abridged_to_program_type
test_program = lib_dict_abridged_to_program_type(prog_dict, {})
print(test_program)
When I run your particular program through the sample, I can see that it’s valid:
… so this ProgramType should be coming through when you drop it into your standards folder and you were right to bring this to my attention. There was a bug in the previous change that I made to ensure that your ProgramTypes can reference schedule in honeybee-energy-standards. I have just pushed a fix for this:
You should be able to get the fix on your end with the LB Versioner in an hour or so after it makes it through our continuous integration. After that, I see that I can successfully load this program into Grasshopper with the program_type_by_identifier()
function:
… and it shows up in the list of Programs that you can assign to Rooms in the Pollination Rhino UI:
Here’s a sample JSON of your program if you want to try dropping it into your standards folder after running the LB Versioner:
necb_program.json (2.4 KB)