-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
3,354 additions
and
0 deletions.
There are no files selected for viewing
91 changes: 91 additions & 0 deletions
91
...kbatch/test/test_inputs/test_openstudio_buildstock/measures/ReportHPXMLOutput/measure.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?xml version="1.0"?> | ||
<measure> | ||
<schema_version>3.1</schema_version> | ||
<name>report_hpxml_output</name> | ||
<uid>9561a0d7-60ad-48c5-8337-2461df044d80</uid> | ||
<version_id>222e94cd-c586-4745-8cde-55e933a00392</version_id> | ||
<version_modified>2024-01-26T00:28:04Z</version_modified> | ||
<xml_checksum>9BF1E6AC</xml_checksum> | ||
<class_name>ReportHPXMLOutput</class_name> | ||
<display_name>HPXML Output Report</display_name> | ||
<description>Reports HPXML outputs for residential HPXML-based models.</description> | ||
<modeler_description>Parses the HPXML file and reports pre-defined outputs.</modeler_description> | ||
<arguments> | ||
<argument> | ||
<name>output_format</name> | ||
<display_name>Output Format</display_name> | ||
<description>The file format of the annual (and timeseries, if requested) outputs.</description> | ||
<type>Choice</type> | ||
<required>false</required> | ||
<model_dependent>false</model_dependent> | ||
<default_value>csv</default_value> | ||
<choices> | ||
<choice> | ||
<value>csv</value> | ||
<display_name>csv</display_name> | ||
</choice> | ||
<choice> | ||
<value>json</value> | ||
<display_name>json</display_name> | ||
</choice> | ||
<choice> | ||
<value>msgpack</value> | ||
<display_name>msgpack</display_name> | ||
</choice> | ||
</choices> | ||
</argument> | ||
</arguments> | ||
<outputs /> | ||
<provenances /> | ||
<tags> | ||
<tag>Reporting.QAQC</tag> | ||
</tags> | ||
<attributes> | ||
<attribute> | ||
<name>Measure Type</name> | ||
<value>ReportingMeasure</value> | ||
<datatype>string</datatype> | ||
</attribute> | ||
<attribute> | ||
<name>Intended Software Tool</name> | ||
<value>OpenStudio Application</value> | ||
<datatype>string</datatype> | ||
</attribute> | ||
<attribute> | ||
<name>Intended Software Tool</name> | ||
<value>Parametric Analysis Tool</value> | ||
<datatype>string</datatype> | ||
</attribute> | ||
</attributes> | ||
<files> | ||
<file> | ||
<filename>README.md</filename> | ||
<filetype>md</filetype> | ||
<usage_type>readme</usage_type> | ||
<checksum>0BB92B1A</checksum> | ||
</file> | ||
<file> | ||
<filename>README.md.erb</filename> | ||
<filetype>erb</filetype> | ||
<usage_type>readmeerb</usage_type> | ||
<checksum>513F28E9</checksum> | ||
</file> | ||
<file> | ||
<version> | ||
<software_program>OpenStudio</software_program> | ||
<identifier>3.2.0</identifier> | ||
<min_compatible>3.2.0</min_compatible> | ||
</version> | ||
<filename>measure.rb</filename> | ||
<filetype>rb</filetype> | ||
<usage_type>script</usage_type> | ||
<checksum>BA1983C8</checksum> | ||
</file> | ||
<file> | ||
<filename>constants.rb</filename> | ||
<filetype>rb</filetype> | ||
<usage_type>resource</usage_type> | ||
<checksum>64289999</checksum> | ||
</file> | ||
</files> | ||
</measure> |
219 changes: 219 additions & 0 deletions
219
...dstockbatch/test/test_inputs/test_openstudio_buildstock/measures/UpgradeCosts/measure.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,219 @@ | ||
<?xml version="1.0"?> | ||
<measure> | ||
<schema_version>3.1</schema_version> | ||
<name>upgrade_costs</name> | ||
<uid>ef51212c-acc4-48d7-9b29-cf2a5c6c4449</uid> | ||
<version_id>91316c37-1384-4da6-bfc7-f3ffff7479bd</version_id> | ||
<version_modified>2024-05-16T22:50:36Z</version_modified> | ||
<xml_checksum>9BF1E6AC</xml_checksum> | ||
<class_name>UpgradeCosts</class_name> | ||
<display_name>Upgrade Costs</display_name> | ||
<description>Measure that calculates upgrade costs.</description> | ||
<modeler_description>Multiplies cost value by cost multiplier.</modeler_description> | ||
<arguments> | ||
<argument> | ||
<name>debug</name> | ||
<display_name>Debug Mode?</display_name> | ||
<description>If true, retain existing and upgraded intermediate files.</description> | ||
<type>Boolean</type> | ||
<required>false</required> | ||
<model_dependent>false</model_dependent> | ||
<default_value>false</default_value> | ||
<choices> | ||
<choice> | ||
<value>true</value> | ||
<display_name>true</display_name> | ||
</choice> | ||
<choice> | ||
<value>false</value> | ||
<display_name>false</display_name> | ||
</choice> | ||
</choices> | ||
</argument> | ||
</arguments> | ||
<outputs /> | ||
<provenances /> | ||
<tags> | ||
<tag>Reporting.QAQC</tag> | ||
</tags> | ||
<attributes> | ||
<attribute> | ||
<name>Measure Type</name> | ||
<value>ReportingMeasure</value> | ||
<datatype>string</datatype> | ||
</attribute> | ||
<attribute> | ||
<name>Intended Software Tool</name> | ||
<value>OpenStudio Application</value> | ||
<datatype>string</datatype> | ||
</attribute> | ||
<attribute> | ||
<name>Intended Software Tool</name> | ||
<value>Parametric Analysis Tool</value> | ||
<datatype>string</datatype> | ||
</attribute> | ||
</attributes> | ||
<files> | ||
<file> | ||
<filename>README.md</filename> | ||
<filetype>md</filetype> | ||
<usage_type>readme</usage_type> | ||
<checksum>8B802F86</checksum> | ||
</file> | ||
<file> | ||
<filename>README.md.erb</filename> | ||
<filetype>erb</filetype> | ||
<usage_type>readmeerb</usage_type> | ||
<checksum>513F28E9</checksum> | ||
</file> | ||
<file> | ||
<version> | ||
<software_program>OpenStudio</software_program> | ||
<identifier>3.1.0</identifier> | ||
<min_compatible>3.1.0</min_compatible> | ||
</version> | ||
<filename>measure.rb</filename> | ||
<filetype>rb</filetype> | ||
<usage_type>script</usage_type> | ||
<checksum>9CBCFE21</checksum> | ||
</file> | ||
<file> | ||
<filename>MF_1story_UB_Furnace_AC1_FuelTankWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>E25C10A6</checksum> | ||
</file> | ||
<file> | ||
<filename>MF_2story_UB_ASHP2_HPWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>2F063A50</checksum> | ||
</file> | ||
<file> | ||
<filename>MF_2story_UB_FuelBoiler_AC1_FuelTankWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>00DC06A5</checksum> | ||
</file> | ||
<file> | ||
<filename>MF_2story_UB_Furnace_AC1_FuelTankWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>D96319E6</checksum> | ||
</file> | ||
<file> | ||
<filename>SFA_2story_FB_FuelBoiler_RoomAC_FuelTankWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>5BB5AEDD</checksum> | ||
</file> | ||
<file> | ||
<filename>SFA_2story_UB_ASHP2_HPWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>9B276DD7</checksum> | ||
</file> | ||
<file> | ||
<filename>SFA_2story_UB_FuelBoiler_RoomAC_FuelTankWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>48E3E2F1</checksum> | ||
</file> | ||
<file> | ||
<filename>SFA_2story_UB_Furnace_RoomAC_FuelTankWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>DE1353CB</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_1story_FB_UA_GRG_MSHP_FuelTanklessWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>A35D75CF</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_1story_FB_UA_GRG_RoomAC_ElecBoiler_FuelTanklessWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>671B1CF5</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_1story_UB_UA_ASHP2_HPWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>633C8822</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_1story_UB_UA_GRG_ACV_FuelFurnace_HPWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>BC978C5D</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_1story_UB_UA_GRG_ACV_FuelFurnace_PortableHeater_HPWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>034E036E</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_2story_CS_UA_AC2_FuelBoiler_FuelTankWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>3472996A</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_2story_CS_UA_GRG_ASHPV_FuelTanklessWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>47092F48</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_2story_FB_UA_GRG_AC1_ElecBaseboard_FuelTankWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>00347BFF</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_2story_FB_UA_GRG_AC1_UnitHeater_FuelTankWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>B7ADB1FF</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_2story_FB_UA_GRG_GSHP_ElecTanklessWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>0740B85A</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_2story_PB_UA_ElecFurnace_ElecTankWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>4368DD0F</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_2story_S_UA_GRG_ASHP1_Fireplace_FuelTanklessWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>20268BB9</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_2story_S_UA_GRG_ASHP1_Fireplace_FuelTanklessWH_ERV.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>51EB98B2</checksum> | ||
</file> | ||
<file> | ||
<filename>SFD_2story_S_UA_GRG_ASHP1_FuelTanklessWH.osw</filename> | ||
<filetype>osw</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>9494BFFE</checksum> | ||
</file> | ||
<file> | ||
<filename>upgrade_costs_test.rb</filename> | ||
<filetype>rb</filetype> | ||
<usage_type>test</usage_type> | ||
<checksum>4695A458</checksum> | ||
</file> | ||
</files> | ||
</measure> |
14 changes: 14 additions & 0 deletions
14
buildstockbatch/test/test_inputs/test_openstudio_buildstock/resources/buildstock.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
class Version | ||
ResStock_Version = '3.1.0' # Version of ResStock | ||
BuildStockBatch_Version = '2023.5.0' # Minimum required version of BuildStockBatch | ||
|
||
def self.check_buildstockbatch_version | ||
if ENV.keys.include?('BUILDSTOCKBATCH_VERSION') # buildstockbatch is installed | ||
bsb_version = ENV['BUILDSTOCKBATCH_VERSION'] | ||
if bsb_version < BuildStockBatch_Version | ||
fail "BuildStockBatch version #{BuildStockBatch_Version} or above is required. Found version: #{bsb_version}" | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.