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

Resstock manual Sampling

asked 6 years ago

Vishak's avatar

updated 6 years ago

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.

Thanks

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 6 years ago

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.

Preview: (hide)
link

Comments

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

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

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

Vishak's avatar Vishak  ( 6 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: 6 years ago

Seen: 197 times

Last updated: Mar 07 '19