1

ResStock sampling issue

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.

mfath's avatar
659
mfath
asked 2023-05-15 15:29:16 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2023-05-15 17:38:16 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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 ....)

shorowit's avatar
11.8k
shorowit
answered 2023-05-15 16:10:17 -0500
edit flag offensive 0 remove flag delete link

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 -0500) edit
1

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

shorowit's avatar shorowit (2023-05-15 17:32:23 -0500) edit
add a comment see more comments