I am trying to call idf in python and change the heating and cooling setpoints and then run it through Python. I am using EnergyPlusV22-1-0. I did lots of research and ended up using "eppy". In the following code, I get an error that means eppy is not compatible with my EnergyPlus version, I guess (not sure). Code:
from eppy import modeleditor
from eppy.modeleditor import IDF
import subprocess
idf_path = "D:\\university\\PhD\\PhD-thesis\\Phase-3\\API\\Example.idf"
idf = IDF(idf_path) ***(Here I get the error)***
heating_schedule_name = "YourHeatingScheduleName"
new_heating_schedule_values = [20.0] * 24 # New setpoint values for 24 hours
schedule = idf.getobject("SCHEDULE:COMPACT", heating_schedule_name)
schedule["HourlyValues"] = new_heating_schedule_values
modified_idf_path = "path/to/modified/input.idf"
idf.save(modified_idf_path)
energyplus_exe = "path/to/EnergyPlus/executable"
idf_weather = "path/to/weather/file"
subprocess.run([energyplus_exe, "-r", "-w", idf_weather, modified_idf_path])
Error: make_idd_index() missing 1 required positional argument: 'debug' Does anyone have any similar experience with compatibility of eppy with EnergyPlus version? Any help is appreciated.