First time here? Check out the Help page!

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 2 years ago

Sinasta's avatar

updated 2 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 2 years ago

You can set the logging level like so:

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

Choices are Warn, Error, or Fatal.

Preview: (hide)
link

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  ( 2 years ago )

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: 2 years ago

Seen: 252 times

Last updated: Feb 27 '23