Skip to content

Commit

Permalink
Merge pull request #1001 from NREL/run_sampling_with_oscli
Browse files Browse the repository at this point in the history
Fixes using OS CLI w/ run_sampling.rb
  • Loading branch information
shorowit committed Oct 31, 2022
2 parents 324563f + 4096ae5 commit 5f7a154
Show file tree
Hide file tree
Showing 6 changed files with 347 additions and 327 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ This measure calculates upgrade costs by multiplying cost values by cost multipl
Manual Sampling
---------------

To run the sampling script yourself, from the command line execute, e.g. ``ruby resources/run_sampling.rb -p project_national -n 10000 -o buildstock.csv``, and a file ``buildstock.csv`` will be created in the ``resources`` directory.
To run the sampling script yourself, from the command line execute, e.g. ``openstudio resources/run_sampling.rb -p project_national -n 10000 -o buildstock.csv``, and a file ``buildstock.csv`` will be created in the ``resources`` directory.

If a custom ``buildstock.csv`` file is located in a project's ``housing_characteristics`` directory when you run the project, it will automatically be used to generate simulations. If it’s not found, the sampling will be run automatically to create one. For each datapoint, the measure will then look up its building description from the sampled csv.

Expand Down
20 changes: 17 additions & 3 deletions measures/ResStockArguments/measure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<schema_version>3.0</schema_version>
<name>res_stock_arguments</name>
<uid>c984bb9e-4ac4-4930-a399-9d23f8f6936a</uid>
<version_id>e4e47b6c-abd8-4411-8653-ca3a8023916c</version_id>
<version_modified>20220817T223140Z</version_modified>
<version_id>b7ce3066-ca7e-4669-b1a0-502e6347f8f7</version_id>
<version_modified>20221031T170331Z</version_modified>
<xml_checksum>2C38F48B</xml_checksum>
<class_name>ResStockArguments</class_name>
<display_name>ResStock Arguments</display_name>
Expand Down Expand Up @@ -74,6 +74,13 @@
<required>false</required>
<model_dependent>false</model_dependent>
</argument>
<argument>
<name>site_ground_conductivity</name>
<display_name>site_ground_conductivity</display_name>
<type>String</type>
<required>false</required>
<model_dependent>false</model_dependent>
</argument>
<argument>
<name>site_zip_code</name>
<display_name>site_zip_code</display_name>
Expand Down Expand Up @@ -900,6 +907,13 @@
<required>false</required>
<model_dependent>false</model_dependent>
</argument>
<argument>
<name>window_natvent_availability</name>
<display_name>window_natvent_availability</display_name>
<type>String</type>
<required>false</required>
<model_dependent>false</model_dependent>
</argument>
<argument>
<name>window_ufactor</name>
<display_name>Windows: U-Factor</display_name>
Expand Down Expand Up @@ -5041,7 +5055,7 @@
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>37CDB199</checksum>
<checksum>F4AF65BB</checksum>
</file>
</files>
</measure>

0 comments on commit 5f7a154

Please sign in to comment.