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

Sampling residential_quota_downselect and buildstock.csv

asked 2023-12-17 13:34:49 -0500

JohnOnt's avatar

I am attempting to subset to certain housing characteristics for simulation runs. I am running the national project (just sampling for debugging now) as:

openstudio workflow/run_analysis.rb -y project_national/new_england_baseline.yml -s -o

In the yml I have the sampler defined as:

  type: residential_quota_downselect
    n_datapoints: 1300
      - Geometry Building Type RECS|Single-Family Detached
      - Vacancy Status|Occupied
      - State|MA

    resample: false

When I check my output directory, however, the buildstock.csv file is a sample from all states of size 1300, not a subset of samples from Massachusetts. Any help would be greatly appreciated, thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2023-12-18 18:36:52 -0500's avatar

It looks like the residential_quota_downselect doesn't work by running workflow/run_analysis.rb. But it works by running using the buildstockbatch environment. I would suggest using the buildstockbatch environment. Also suggest set resample as true if it still doesn't work.

edit flag offensive delete link more



The residential_quota_downselect (without resample) works when using run_analysis.rb. See the relevant note in the documentation:

When using residential_quota_downselect (without resample) with run_analysis.rb, you should expect to see that the sampled buildstock.csv file contains all rows. The workflow uses BuildExistingModel's "downselect_logic" argument ( to skip (i.e., register Invalid) excluded rows.

joseph-robertson's avatar joseph-robertson  ( 2023-12-19 10:59:17 -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: 2023-12-17 13:34:49 -0500

Seen: 42 times

Last updated: Dec 18 '23