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 2025-01-15 19:48:20 -0600

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?

edit retag flag offensive close merge delete

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  ( 2025-01-16 09:13:01 -0600 )edit

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  ( 2025-01-16 09:17:11 -0600 )edit
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  ( 2025-01-16 18:02:35 -0600 )edit

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  ( 2025-01-20 13:10:37 -0600 )edit

1 Answer

Sort by » oldest newest most voted
4

answered 2025-01-17 02:22:06 -0600

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

edit flag offensive delete link more

Comments

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

JayKo's avatar JayKo  ( 2025-01-20 13:11:09 -0600 )edit

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: 2025-01-15 19:48:20 -0600

Seen: 102 times

Last updated: Jan 17