Skip to content

Commit

Permalink
Merge pull request #282 from NREL/sample_wt_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeee committed Mar 29, 2022
2 parents a2aef5b + e305658 commit c194cac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion buildstockbatch/workflow_generator/residential_hpxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def create_osw(self, sim_id, building_id, upgrade_idx):

bld_exist_model_args = {
'building_id': building_id,
'sample_weight': self.n_datapoints / self.cfg['baseline']['n_buildings_represented']
'sample_weight': self.cfg['baseline']['n_buildings_represented'] / self.n_datapoints
}
if 'measures_to_ignore' in workflow_args:
bld_exist_model_args['measures_to_ignore'] = '|'.join(workflow_args['measures_to_ignore'])
Expand Down
7 changes: 7 additions & 0 deletions docs/changelog/changelog_dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ Development Changelog

Postprocessing can correctly handle assortment of upgrades with overlaping set of columns with missing and
non-missing values.

.. change::
:tags: bugfix
:pullreq: 282
:tickets:

Fixes bug that would cause sample weight to be incorrect on the HPXML workflow.

0 comments on commit c194cac

Please sign in to comment.