Question-and-Answer Resource for the Building Energy Modeling Community
Get s tarted with the Help page
Ask Your Question
2

OpenStudio python bindings

asked 2021-07-20 15:34:39 -0500

Michel gravatar image

Hello,

I am very new to OpenStudio and I want to integrate the software in a statistical analysis on python. I do not know how to compile and use the python bindings. Can anyone give me a tutorial for it?

edit retag flag offensive close merge delete

Comments

Are you referring to the EMS Python API? Could you provide more detail of your needs

mechyai gravatar image mechyai  ( 2021-07-20 20:06:18 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2021-07-20 22:11:21 -0500

updated 2021-07-20 22:12:59 -0500

You can install the openstudio python bindings using pip install openstudio.

Then you can test they work:

import openstudio
m = openstudio.model.Model()
print(m)

That results in:

OS:Version,
  {b1c739b0-8af6-4d47-b6a2-96df1d55f3cb}, !- Handle
  3.2.1;                                  !- Version Identifier

You can find more information at https://pypi.org/project/openstudio/

edit flag offensive delete link more

Comments

Thank you, it worked

Michel gravatar image Michel  ( 2021-07-21 01:58:19 -0500 )edit

Where is the documentation for all the package functions? I want to use some OpenStudio modifications in my python scripts?

mechyai gravatar image mechyai  ( 2021-07-21 11:14:49 -0500 )edit

Are you referring to the OpenStudio SDK documentation?

shorowit gravatar image shorowit  ( 2021-07-21 11:25:57 -0500 )edit

Your Answer

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

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2021-07-20 15:34:39 -0500

Seen: 115 times

Last updated: 2 days ago