Skip to content

Sampling regions characteristic#525

Draft
joseph-robertson wants to merge 12 commits into
nlr-name-updatesfrom
sampling_regions
Draft

Sampling regions characteristic#525
joseph-robertson wants to merge 12 commits into
nlr-name-updatesfrom
sampling_regions

Conversation

@joseph-robertson

Copy link
Copy Markdown

Pull Request Description

Companion PR: NatLabRockies/resstock#1418

Checklist

Not all may apply

  • Code changes (must work)
  • Tests exercising your feature/bug fix (check coverage report on Checks -> BuildStockBatch Tests -> Artifacts)
  • Coverage has increased or at least not decreased. Update minimum_coverage in .github/workflows/coverage.yml as necessary.
  • All other unit and integration tests passing
  • Update validation for project config yaml file changes
  • Update existing documentation
  • Run a small batch run on Kestrel to make sure it all works if you made changes that will affect Kestrel
  • Add to the changelog_dev.rst file and propose migration text in the pull request

@joseph-robertson joseph-robertson self-assigned this Jun 10, 2026
def _run_sampling_local(self):
subprocess.run(
[
self.parent().openstudio_exe(),

@joseph-robertson joseph-robertson Jun 10, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not totally sure why we needed the openstudio cli to run the quota sampler script (possibly pre-dates the run_sampling / run_sampling_lib split?), but it seems to work fine using system ruby.

def _run_sampling_local(self):
subprocess.run(
[
"python",

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to https://github.com/NatLabRockies/buildstockbatch/pull/525/changes#r3390798176, another reason to not use the openstudio cli is that I tried it with this stratified sampler script (python), and ran into a bunch of issues related to missing packages (and needing to use --python_path), joblib/multiprocessing and using the wrong executable, etc. It's probably possible to use the openstudio cli, but it seems to work fine using system python.

@joseph-robertson joseph-robertson changed the base branch from develop to nlr-name-updates June 10, 2026 22:45
Comment thread buildstockbatch/local.py
Comment on lines +117 to +122
# samplers_path = buildstock_path / "samplers"
# if samplers_path.exists():
# sampler_path = sim_path / "samplers"
# (sampler_path).symlink_to(samplers_path, target_is_directory=True)
# else:
# sampler_path = None

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not totally sure if I need this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants