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

ResStock sampling issue

asked 2023-05-15 15:29:16 -0600

mfath's avatar

updated 2023-05-15 17:38:16 -0600

Hi,

I have tried running the sampling script of ResStock on my computer. However, I am getting the following error:

image description

I have openstudio 3.5.1 and 3.6.0 both installed on my computer and getting the env variable to either of those does not resolve this issue. I also tried to "gem install openstudio" but it raised other errors. Any help is greatly appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-15 16:10:17 -0600

Does it work if you run the sampling script using the OpenStudio CLI instead of ruby? E.g.:

openstudio resources/run_sampling.rb -p project_national -n 200 -o buildstock.csv

(If the openstudio binary is not in your PATH, use /path/to/openstudio ....)

edit flag offensive delete link more

Comments

Thank you @shorowit! It did work with this approach (Thank you!). A follow up question on how to do this with openstudio docker images? Right now, I am using

sudo docker run -it --rm -v "$(pwd)":/data nrel/openstudio:3.6.0 /bin/bash -c "cd /data && ruby resources/run_sampling.rb -p project_national -n 200 -o buildstock.csv"

but still getting the same error as before that no such a file or directory exists!

mfath's avatar mfath  ( 2023-05-15 16:56:14 -0600 )edit
1

Replace "ruby" with "openstudio" in your docker command?

shorowit's avatar shorowit  ( 2023-05-15 17:32:23 -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-05-15 15:29:16 -0600

Seen: 80 times

Last updated: Aug 24 '23