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

Resstock manual Sampling

asked 2019-03-07 04:50:54 -0500

Vishak's avatar

updated 2019-03-08 09:38:35 -0500

Hello All, I am trying to generate a buildstock.csv using the manual sampling directions provided in the documentation.

The paragraph in blue background instructs to run the command from command line. I am using the command prompt with 'resources' directory opened. Once in the 'resources' directory I execute the command holding the 'ruby resources/' part. I believe the 'ruby resources' part is just a guideline to execute the command in resources directory.

However after executing the command in CMD, the run_sampling.rb opens in notepad and buildstock is not generated. I was under the impression that buildstock.csv could be seen in the resources directory. I checked other folders in the 'project_resstock_national' folder to find a buildstock generated but could not locate.

Am I missing something here? I am not experienced in ruby and compiling ruby scripts in a standalone manner. The version being used here is PAT 2.6.0.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-03-07 10:05:00 -0500

You need to keep the "ruby" part of the command as that is the program being executed. Otherwise it thinks you simply want to view the ruby script in a text editor. Also, rather than deviating from the ResStock instructions, I would suggest you issue the command as specified (ruby resources/run_sampling.rb ...) from the parent directory to the resources directory.

edit flag offensive delete link more


Thanks, I tried to run the command again in the resources directory using the 'ruby resources/..' prefix. however I get an error as " 'ruby' is not recognized as an internal or external command, operable program or batch data".

Am I correct in running this command in CMD in the resources folder of 'Open Studio Buildstock Master'?

Vishak's avatar Vishak  ( 2019-03-07 10:17:56 -0500 )edit

Do you know if you have ruby installed on your computer? If so, you can specify the full path to the ruby executable (e.g., c:\Ruby22-x64\bin\ruby.exe resources/run_sampling.rb ...). If not, then you will want to install it.

shorowit's avatar shorowit  ( 2019-03-07 10:21:20 -0500 )edit

Thanks, I lack ruby. I was under the impression that OS and PAT install ruby on the computer by default.

Vishak's avatar Vishak  ( 2019-03-07 10:26:19 -0500 )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

Question Tools

1 follower


Asked: 2019-03-07 04:50:54 -0500

Seen: 95 times

Last updated: Mar 07 '19