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

Sampling residential_quota_downselect and buildstock.csv

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

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:

 sampler:
  type: residential_quota_downselect
  args:
    n_datapoints: 1300
    logic:
      - 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
1

answered 2023-12-18 18:36:52 -0600

yingli.lou@colorado.edu'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. https://github.com/NREL/buildstockbatch Also suggest set resample as true if it still doesn't work.

edit flag offensive delete link more

Comments

1

The residential_quota_downselect (without resample) works when using run_analysis.rb. See the relevant note in the documentation: https://resstock.readthedocs.io/en/la....

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 (https://github.com/NREL/resstock/blob...) to skip (i.e., register Invalid) excluded rows.

joseph-robertson's avatar joseph-robertson  ( 2023-12-19 10:59:17 -0600 )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

Careers

Question Tools

1 follower

Stats

Asked: 2023-12-17 13:34:49 -0600

Seen: 72 times

Last updated: Dec 18 '23