First time here? Check out the Help page!
1 | initial version |
Hello,
Alternatively, you could use frads, a Python package for EnergyPlus model edits and simulation. You can check out this guide (https://lbnl-eta.github.io/frads/how-to/guide_ep1/) section 1 and 2 for more details about editing idf.
installation of frads package comes with an installation of the latest EnergyPlus version, so make sure your idf is up-to-date.
!pip install frad
import frads as fr
your_idf_path = "test.idf"
epmodel = fr.load_energyplus_model(your_idf_path)
epmodel.people["name"].number_of_people_schedule_name = schedule_name
save file as json. can use Energyplus -c to convert back to idf if desired.
with open("test.json", "w") as wtr:
wtr.write(epmodel.model_dump_json(by_alias=True, exclude_none=True))