Skip to content

Can't run resstock in parallel #219

@willf

Description

@willf

I know this is an odd workflow, but I'd like to call resstock in parallel, to run multiple models (baseline only) built each with a precomputed buildstock.csv

Issues:

  • run_analysis.rb consistently wipes and recreates the resstock/lib folder

    • At initialization
      • cp resstock/resources to resstock/lib/resources
      • cp resstock/project_<national|baseline>/housing_characteristics to resstock/lib/housing_characteristics
    • Also wipes the lib folder at end unless --debug is passed
    • This is avoidable, especially considering there's a smart way to check if it's needed to recreate it, via checksuming the content of the source dir and target dir to ensure we have up to date copies in resstock/lib
  • It copies (or create if not precomputed) the buildstock.csv to the resstock/lib/housing_characteristics/buildstock.csv and BuildExistingModel measure just plain assumes it there, with no option to change it

    • buildstock_csv_path = File.absolute_path(File.join(characteristics_dir, 'buildstock.csv')) # Should have been generated by the Worker Initialization Script (run_sampling.rb) or provided by the project

Source: NREL on 2023-09-05.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions