Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

How not to see EnergyPlus terminal outputs

asked Jan 16

Hello,

I am currently using EnergyPlus/pyenergyplus to train my RL controller, which requires repetitive runnings of EnergyPlus. Along the subsequent simulations, I hope to skip the terminal outputs from EnergyPlus. However, I couldn't find one.

Is there anyone who knows how to deal with such situation?

Preview: (hide)

Comments

@jay just to confirm, you want to run EnergyPlus simulations but NOT have a terminal or command window open to give status updates during each simulation?

Aaron Boranian's avatar Aaron Boranian  ( Jan 16 )

Hello Aaron, yes. This is because I am using EnergyPlus environment for RL agent training; so, I currently don't need to see how the simulation is going (e.g., warming up & Performing Zone Sizing Simulation).

JayKo's avatar JayKo  ( Jan 16 )
1

What operating system are you using? For example, on Linux/Mac, you can redirect the EnergyPlus stdout and sterr to /dev/null by adding >/dev/null 2>&1 to the end of your command. There are similar commands on Windows.

shorowit's avatar shorowit  ( Jan 16 )

Hello Scott,

I attempted to execute the command, but it was unsuccessful. This may be due to my access to the shell command from Python, which disregards the following command.

JayKo's avatar JayKo  ( Jan 20 )

1 Answer

Sort by » oldest newest most voted
4

answered Jan 17

hermmanhender's avatar

Hi, there is a method in the Runtime API called set_console_output_status that you can use. As an example of how to use it you can set:

from pyenergyplus.api import EnergyPlusAPI
api = EnergyPlusAPI()
api.runtime.set_console_output_status(state, False)

See https://energyplus.readthedocs.io/en/... I hope that works for you, Best, Germán

Preview: (hide)
link

Comments

Hello Germán, it solved my problem! Great thank you!

JayKo's avatar JayKo  ( Jan 20 )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

Stats

Asked: Jan 16

Seen: 123 times

Last updated: Jan 17