taoning / pyenergyplus

Other
3 stars 3 forks source link

Command line options not available #2

Open hayesgb opened 11 months ago

hayesgb commented 11 months ago

When attempting to run the following:

from pyenergyplus.api import EnergyPlusAPI
from pathlib import Path

home = Path.cwd()
fpath = Path(home.parent, 'resstd_CZ5A_IECC_2021', 'US+SF+CZ5A+gasfurnace+unheatedbsmt+IECC_2021.idf')

api = EnergyPlusAPI()
state = api.state_manager.new_state()
api.runtime.set_console_output_status(state, True)
api.runtime.run_energyplus(state, ["--convert-only", "-x", str(fpath)])

I'm getting an error that I need to run ExpandObjects on the .idf file, but ExpandObjects should be available through the -x parameter.

taoning commented 11 months ago

We're not building Fortran targets, including ExpandObjects, at the moment. The full functionality will have to come when EnergyPlus develop an official Python wheel. In the meantime, you can probably use this.