Revision history  [back]

Using python to edit and run idf files. Any experience?

I want to use a Python script to call EnergyPluse and run it. I was able to do it using this code:

    import subprocess
    path_to_energyplus = r"C:\EnergyPlusV22-1-0\EP-Launch.exe"
    path_to_idf = r"C:\Example.idf"
    command = [path_to_energyplus, path_to_idf]
    result = subprocess.run(command)

Now, my objective is to read and edit heating and cooling setpoints schedules in the Python script. Any help, idea, and comment is appreciated.

Using python to edit and run idf files. Any experience?

I want to use a Python script to call EnergyPluse and run it. I was able to do it using this code:

    import subprocess
    path_to_energyplus = r"C:\EnergyPlusV22-1-0\EP-Launch.exe"
    path_to_idf = r"C:\Example.idf"
    command = [path_to_energyplus, path_to_idf]
    result = subprocess.run(command)

Now, my objective is to read and edit heating and cooling setpoints schedules in the Python script. Any help, idea, and comment is appreciated.