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

supress warning output cli

asked 2023-02-27 11:01:38 -0600

Sinasta's avatar

updated 2023-02-27 14:13:53 -0600

I am using the python bindings of openstudio and i am getting this output:

[openstudio.EpwFile] <0> Successive data points (1984-Feb-28 to 1992-Mar-01, ending on line 1425) are greater than 1 day apart in EPW file './code/energy/Berlin.epw'. Data will be treated as typical (TMY)
[openstudio.model.YearDescription] <1> 'UseWeatherFile' is selected in YearDescription, but there are no weather file set for the model.
[openstudio.model.YearDescription] <1> 'UseWeatherFile' is selected in YearDescription, but there are no weather file set for the model.

Is there any way to suppress this output? Thank You

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-02-27 16:35:08 -0600

You can set the logging level like so:

openstudio.Logger.instance().standardOutLogger().setLogLevel(openstudio.Fatal)

Choices are Warn, Error, or Fatal.

edit flag offensive delete link more

Comments

1

For completeness: Trace, Debug, Info, Warn, Error, or Fatal. You can also disable the logger completely openstudio.Logger.instance().standardOutLogger().disable()

Julien Marrec's avatar Julien Marrec  ( 2023-03-06 06:34:10 -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

1 follower

Stats

Asked: 2023-02-27 11:01:38 -0600

Seen: 210 times

Last updated: Feb 27 '23