openstudio-common-measures 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test_with_openstudio.yml +2 -2
- data/CHANGELOG.md +4 -0
- data/Gemfile +10 -5
- data/Jenkinsfile +1 -1
- data/README.md +1 -0
- data/lib/measures/.rubocop.yml +6 -0
- data/lib/measures/AddCostPerAreaToConstruction/measure.xml +21 -21
- data/lib/measures/AddCostPerFloorAreaToBuilding/measure.xml +25 -25
- data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.xml +21 -21
- data/lib/measures/AddCostPerFloorAreaToLights/measure.xml +21 -21
- data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.xml +21 -21
- data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.xml +24 -24
- data/lib/measures/AddCostperAreatoUnusedConstruction/measure.xml +21 -21
- data/lib/measures/AddExteriorLights/measure.xml +19 -19
- data/lib/measures/AddMeter/measure.xml +15 -15
- data/lib/measures/AddOutputDiagnostics/measure.xml +18 -18
- data/lib/measures/AddOutputVariable/measure.xml +15 -15
- data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.xml +24 -24
- data/lib/measures/AddThermalComfortModelTypes/measure.xml +21 -21
- data/lib/measures/AdjustSystemEfficiencies/measure.xml +12 -12
- data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.xml +23 -23
- data/lib/measures/ChangeBuildingLocation/README.md +1 -1
- data/lib/measures/ChangeBuildingLocation/measure.rb +8 -13
- data/lib/measures/ChangeBuildingLocation/measure.xml +89 -89
- data/lib/measures/EnableIdealAirLoadsForAllZones/measure.xml +22 -22
- data/lib/measures/ExportScheduleCSV/measure.xml +29 -29
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.xml +29 -29
- data/lib/measures/MeterFlodPlot/measure.xml +35 -35
- data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.xml +24 -24
- data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.xml +24 -24
- data/lib/measures/PredictedMeanVote/measure.xml +23 -23
- data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.xml +21 -21
- data/lib/measures/RemoveUnusedDefaultProfiles/measure.xml +19 -19
- data/lib/measures/ReplaceExteriorWindowConstruction/measure.xml +29 -29
- data/lib/measures/ReplaceModel/README.md +1 -3
- data/lib/measures/ReplaceModel/measure.xml +32 -14
- data/lib/measures/ReplaceThermostatSchedules/measure.xml +17 -17
- data/lib/measures/ReportModelChanges/measure.xml +23 -23
- data/lib/measures/RunPeriod/measure.xml +14 -14
- data/lib/measures/RunPeriodMultiple/measure.xml +12 -12
- data/lib/measures/ServerDirectoryCleanup/measure.xml +30 -30
- data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.xml +23 -23
- data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.xml +23 -23
- data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.xml +24 -24
- data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.xml +24 -24
- data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.xml +24 -24
- data/lib/measures/SetGasBurnerEfficiency/measure.xml +23 -23
- data/lib/measures/SetLifecycleCostParameters/measure.xml +15 -15
- data/lib/measures/SetLightingLoadsByLPD/measure.xml +35 -35
- data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.xml +25 -25
- data/lib/measures/SetThermostatSchedules/measure.xml +17 -17
- data/lib/measures/ShiftScheduleProfileTime/measure.xml +23 -23
- data/lib/measures/SwapLightsDefinition/measure.xml +25 -25
- data/lib/measures/UnmetLoadHoursTroubleshooting/measure.xml +43 -43
- data/lib/measures/VentilationQAQC/measure.xml +31 -31
- data/lib/measures/XcelEDAReportingandQAQC/measure.xml +3 -3
- data/lib/measures/XcelEDATariffSelectionandModelSetup/measure.xml +73 -73
- data/lib/measures/ZoneReport/measure.xml +35 -35
- data/lib/measures/add_ems_emissions_reporting/measure.rb +0 -2
- data/lib/measures/add_ems_emissions_reporting/measure.xml +23 -23
- data/lib/measures/add_ems_to_control_ev_charging/measure.rb +0 -2
- data/lib/measures/add_ems_to_control_ev_charging/measure.xml +21 -21
- data/lib/measures/add_ev_load/measure.xml +35 -35
- data/lib/measures/add_rooftop_pv/measure.rb +5 -7
- data/lib/measures/add_rooftop_pv/measure.xml +25 -25
- data/lib/measures/add_zone_mixing_object/measure.xml +19 -19
- data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.xml +21 -21
- data/lib/measures/air_wall_zone_mixing/measure.rb +4 -6
- data/lib/measures/air_wall_zone_mixing/measure.xml +27 -27
- data/lib/measures/create_csv_output/measure.xml +28 -28
- data/lib/measures/envelope_and_internal_load_breakdown/measure.rb +0 -4
- data/lib/measures/envelope_and_internal_load_breakdown/measure.xml +52 -52
- data/lib/measures/envelope_and_internal_load_breakdown/resources/report.html.erb +1 -0
- data/lib/measures/example_report/measure.rb +2 -5
- data/lib/measures/example_report/measure.xml +41 -41
- data/lib/measures/example_report/resources/report.html.erb +1 -0
- data/lib/measures/gem_env_report/measure.xml +32 -32
- data/lib/measures/generic_qaqc/measure.rb +8 -15
- data/lib/measures/generic_qaqc/measure.xml +13 -13
- data/lib/measures/generic_qaqc/resources/check_air_sys_temps.rb +2 -2
- data/lib/measures/generic_qaqc/resources/check_domestic_hot_water.rb +4 -4
- data/lib/measures/generic_qaqc/resources/check_envelope_conductance.rb +7 -5
- data/lib/measures/generic_qaqc/resources/check_internal_loads.rb +2 -2
- data/lib/measures/generic_qaqc/resources/check_mech_sys_type.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_plant_temps.rb +6 -6
- data/lib/measures/generic_qaqc/resources/check_schedules.rb +7 -7
- data/lib/measures/generic_qaqc/resources/check_supply_air_and_thermostat_temp_difference.rb +5 -2
- data/lib/measures/generic_qaqc/resources/report.html.erb +1 -0
- data/lib/measures/get_site_from_building_component_library/measure.rb +4 -8
- data/lib/measures/get_site_from_building_component_library/measure.xml +28 -28
- data/lib/measures/hvac_psychrometric_chart/measure.xml +29 -29
- data/lib/measures/hvac_psychrometric_chart/resources/report.html.erb +1 -0
- data/lib/measures/inject_idf_objects/measure.xml +31 -31
- data/lib/measures/openstudio_results/measure.rb +2 -6
- data/lib/measures/openstudio_results/measure.xml +348 -360
- data/lib/measures/openstudio_results/resources/os_lib_reporting.rb +8 -8
- data/lib/measures/openstudio_results/resources/report.html.erb +1 -0
- data/lib/measures/remove_orphan_objects_and_unused_resources/measure.xml +24 -24
- data/lib/measures/set_electric_equipment_loads_by_epd/measure.xml +33 -33
- data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.xml +19 -19
- data/lib/measures/set_run_period/measure.xml +19 -19
- data/lib/measures/set_space_infiltration_per_exterior_area/measure.xml +22 -22
- data/lib/measures/shadow_calculation/measure.xml +18 -18
- data/lib/measures/tariff_selection_block/measure.rb +2 -5
- data/lib/measures/tariff_selection_block/measure.xml +25 -25
- data/lib/measures/tariff_selection_flat/measure.rb +3 -5
- data/lib/measures/tariff_selection_flat/measure.xml +25 -25
- data/lib/measures/tariff_selection_generic/measure.rb +2 -5
- data/lib/measures/tariff_selection_generic/measure.xml +39 -39
- data/lib/measures/tariff_selection_time_and_date_dependant/measure.rb +19 -15
- data/lib/measures/tariff_selection_time_and_date_dependant/measure.xml +37 -25
- data/lib/measures/view_data/measure.xml +41 -41
- data/lib/measures/view_model/measure.xml +35 -35
- data/lib/openstudio/common_measures/version.rb +1 -1
- data/openstudio-common-measures.gemspec +11 -4
- metadata +72 -15
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>inject_idf_objects</name>
|
5
5
|
<uid>f567dfbc-d280-4d68-b061-019ab2630cd0</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>fad67fa1-ef05-4eea-bb44-8552e20c1a4c</version_id>
|
7
|
+
<version_modified>2024-07-11T14:32:07Z</version_modified>
|
8
8
|
<xml_checksum>A8BAB05F</xml_checksum>
|
9
9
|
<class_name>InjectIDFObjects</class_name>
|
10
10
|
<display_name> Inject IDF Objects</display_name>
|
@@ -61,28 +61,10 @@ This measure works for when you just need to add new IDF objects. If you need to
|
|
61
61
|
</attributes>
|
62
62
|
<files>
|
63
63
|
<file>
|
64
|
-
<filename>
|
65
|
-
<filetype>
|
66
|
-
<usage_type>
|
67
|
-
<checksum>
|
68
|
-
</file>
|
69
|
-
<file>
|
70
|
-
<filename>Example B - BlockEnergyCharge.idf</filename>
|
71
|
-
<filetype>idf</filetype>
|
72
|
-
<usage_type>test</usage_type>
|
73
|
-
<checksum>F90DD242</checksum>
|
74
|
-
</file>
|
75
|
-
<file>
|
76
|
-
<filename>model_test.osw</filename>
|
77
|
-
<filetype>osw</filetype>
|
78
|
-
<usage_type>test</usage_type>
|
79
|
-
<checksum>F5FABCCF</checksum>
|
80
|
-
</file>
|
81
|
-
<file>
|
82
|
-
<filename>README.md.erb</filename>
|
83
|
-
<filetype>erb</filetype>
|
84
|
-
<usage_type>readmeerb</usage_type>
|
85
|
-
<checksum>703C9964</checksum>
|
64
|
+
<filename>LICENSE.md</filename>
|
65
|
+
<filetype>md</filetype>
|
66
|
+
<usage_type>license</usage_type>
|
67
|
+
<checksum>BFFB1AA6</checksum>
|
86
68
|
</file>
|
87
69
|
<file>
|
88
70
|
<filename>README.md</filename>
|
@@ -91,10 +73,10 @@ This measure works for when you just need to add new IDF objects. If you need to
|
|
91
73
|
<checksum>3D0882F2</checksum>
|
92
74
|
</file>
|
93
75
|
<file>
|
94
|
-
<filename>
|
95
|
-
<filetype>
|
96
|
-
<usage_type>
|
97
|
-
<checksum>
|
76
|
+
<filename>README.md.erb</filename>
|
77
|
+
<filetype>erb</filetype>
|
78
|
+
<usage_type>readmeerb</usage_type>
|
79
|
+
<checksum>703C9964</checksum>
|
98
80
|
</file>
|
99
81
|
<file>
|
100
82
|
<version>
|
@@ -105,13 +87,31 @@ This measure works for when you just need to add new IDF objects. If you need to
|
|
105
87
|
<filename>measure.rb</filename>
|
106
88
|
<filetype>rb</filetype>
|
107
89
|
<usage_type>script</usage_type>
|
108
|
-
<checksum>
|
90
|
+
<checksum>AC4140F5</checksum>
|
91
|
+
</file>
|
92
|
+
<file>
|
93
|
+
<filename>EnvelopeAndLoadTestModel_01.osm</filename>
|
94
|
+
<filetype>osm</filetype>
|
95
|
+
<usage_type>test</usage_type>
|
96
|
+
<checksum>E11F67BD</checksum>
|
97
|
+
</file>
|
98
|
+
<file>
|
99
|
+
<filename>Example B - BlockEnergyCharge.idf</filename>
|
100
|
+
<filetype>idf</filetype>
|
101
|
+
<usage_type>test</usage_type>
|
102
|
+
<checksum>F90DD242</checksum>
|
109
103
|
</file>
|
110
104
|
<file>
|
111
105
|
<filename>measure_Test.rb</filename>
|
112
106
|
<filetype>rb</filetype>
|
113
107
|
<usage_type>test</usage_type>
|
114
|
-
<checksum>
|
108
|
+
<checksum>88C69467</checksum>
|
109
|
+
</file>
|
110
|
+
<file>
|
111
|
+
<filename>model_test.osw</filename>
|
112
|
+
<filetype>osw</filetype>
|
113
|
+
<usage_type>test</usage_type>
|
114
|
+
<checksum>F5FABCCF</checksum>
|
115
115
|
</file>
|
116
116
|
</files>
|
117
117
|
</measure>
|
@@ -6,11 +6,6 @@
|
|
6
6
|
require 'erb'
|
7
7
|
require 'json'
|
8
8
|
|
9
|
-
# load OpenStudio measure libraries from openstudio-extension gem
|
10
|
-
require 'openstudio-extension'
|
11
|
-
require 'openstudio/extension/core/os_lib_schedules'
|
12
|
-
require 'openstudio/extension/core/os_lib_helper_methods'
|
13
|
-
|
14
9
|
# load local resources
|
15
10
|
require "#{File.dirname(__FILE__)}/resources/os_lib_reporting"
|
16
11
|
require_relative 'resources/Siz.Model'
|
@@ -213,7 +208,8 @@ class OpenStudioResults < OpenStudio::Measure::ReportingMeasure
|
|
213
208
|
web_asset_path = setup[:web_asset_path]
|
214
209
|
|
215
210
|
# assign the user inputs to variables
|
216
|
-
args =
|
211
|
+
args = runner.getArgumentValues(arguments, user_arguments)
|
212
|
+
args = Hash[args.collect{ |k, v| [k.to_s, v] }]
|
217
213
|
unless args
|
218
214
|
return false
|
219
215
|
end
|