NREL / resstock

Highly granular modeling of residential building stocks at national, regional, and local scales using OpenStudio/EnergyPlus.
https://resstock.nrel.gov
Other
104 stars 51 forks source link

Support sample_weight in buildstock.csv #1056

Closed joseph-robertson closed 1 year ago

joseph-robertson commented 1 year ago

Pull Request Description

Adds support for a sample_weight column in the precomputed buildstock.csv. By default, BuildExistingModel writes build_existing_model.sample_weight based on calculating n_buildings_represented / n_datapoints (this calculation is done in the workflow generator and then passed into the BuildExistingModel measure). Now, if sample_weight already exists in the buildstock.csv, it will write this value instead of the calculated one.

This PR also:

Checklist

Not all may apply:

joseph-robertson commented 1 year ago

Should the new allowable column, for consistency, be "Sample Weight" instead of "sample_weight"?