NRCan-IETS-CE-O-HBC / HTAP

NRCan's Ruby scripts for batch analysis and optimization with HOT2000
http://www.nrcan.gc.ca/energy/efficiency/housing/home-improvements/17725
GNU Lesser General Public License v3.0
15 stars 8 forks source link

Git version stamping #81

Closed fergusoa closed 5 years ago

fergusoa commented 5 years ago

These changes allow HTAP to parse, report version information from Git, HOT2000 results files. They will aid future efforts to track and compare differerences between HTAP / HOT2000 versions.

NOTE THAT THEY CHANGE THE STRUCTURE OF THE JSON OUTPUT Key changes:

Example JSON output below.

{
  "htap-configuration": {
    "git-branch": "git_version_stamping",
    "git-revision": "6bf4cc0",
    "runs-by-h2kVersion": {
      "v11.6b10": 1
    }
  },
  "htap-results": [
    {
      "result-number": 1,
      "status": {...},
      "archetype": {...},
      "input": {...},
      "output": {...},
      "configuration": {
        "RunNumber": "1",
        "RunDirectory": "HTAP-work-0",
        "SaveDirectory": "HTAP-sim-1",
        "ChoiceFile": "sim-1.choices",
        "OptionsFile": "HTAP-options.json",
        "Recovered-results": "General",
        "version": {
          "h2kHouseFile": "1.3",
          "HOT2000": "v11.6b10"
        }
      },
      "cost-estimates": {...},
      "analysis:BCStepCode": {...}
    }
  ]
}
fergusoa commented 5 years ago

Cancelled because it defaults to the local path, not necessarly the HTAP source.

fergusoa commented 5 years ago

Re-opened, with patch that runs git commands on path to scripts