openstudio-common-measures 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/Jenkinsfile +2 -1
- data/LICENSE.md +1 -1
- data/doc_templates/LICENSE.md +1 -1
- data/doc_templates/copyright_erb.txt +1 -1
- data/doc_templates/copyright_js.txt +1 -1
- data/doc_templates/copyright_ruby.txt +1 -1
- data/lib/measures/AddCostPerAreaToConstruction/LICENSE.md +1 -1
- data/lib/measures/AddCostPerAreaToConstruction/measure.rb +1 -1
- data/lib/measures/AddCostPerAreaToConstruction/measure.xml +8 -7
- data/lib/measures/AddCostPerFloorAreaToBuilding/LICENSE.md +1 -1
- data/lib/measures/AddCostPerFloorAreaToBuilding/measure.rb +1 -1
- data/lib/measures/AddCostPerFloorAreaToBuilding/measure.xml +8 -7
- data/lib/measures/AddCostPerFloorAreaToElectricEquipment/LICENSE.md +1 -1
- data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.rb +1 -1
- data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.xml +8 -7
- data/lib/measures/AddCostPerFloorAreaToLights/LICENSE.md +1 -1
- data/lib/measures/AddCostPerFloorAreaToLights/measure.rb +1 -1
- data/lib/measures/AddCostPerFloorAreaToLights/measure.xml +8 -7
- data/lib/measures/AddCostPerFloorAreaUnusedToLights/LICENSE.md +1 -1
- data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.rb +1 -1
- data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.xml +8 -7
- data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/LICENSE.md +1 -1
- data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.rb +1 -1
- data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.xml +9 -8
- data/lib/measures/AddCostperAreatoUnusedConstruction/LICENSE.md +1 -1
- data/lib/measures/AddCostperAreatoUnusedConstruction/measure.rb +1 -1
- data/lib/measures/AddCostperAreatoUnusedConstruction/measure.xml +8 -7
- data/lib/measures/AddExteriorLights/LICENSE.md +1 -1
- data/lib/measures/AddExteriorLights/measure.rb +1 -1
- data/lib/measures/AddExteriorLights/measure.xml +8 -7
- data/lib/measures/AddMeter/LICENSE.md +1 -1
- data/lib/measures/AddMeter/measure.rb +1 -1
- data/lib/measures/AddMeter/measure.xml +8 -7
- data/lib/measures/AddOutputDiagnostics/LICENSE.md +1 -1
- data/lib/measures/AddOutputDiagnostics/measure.rb +1 -1
- data/lib/measures/AddOutputDiagnostics/measure.xml +8 -7
- data/lib/measures/AddOutputVariable/LICENSE.md +1 -1
- data/lib/measures/AddOutputVariable/measure.rb +1 -1
- data/lib/measures/AddOutputVariable/measure.xml +8 -7
- data/lib/measures/AddSimplePvToShadingSurfacesByType/LICENSE.md +1 -1
- data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.rb +1 -1
- data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.xml +8 -7
- data/lib/measures/AdjustSystemEfficiencies/LICENSE.md +1 -1
- data/lib/measures/AdjustSystemEfficiencies/measure.rb +1 -1
- data/lib/measures/AdjustSystemEfficiencies/measure.xml +7 -6
- data/lib/measures/AdjustThermostatSetpointsByDegrees/LICENSE.md +1 -1
- data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.rb +1 -1
- data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.xml +8 -7
- data/lib/measures/ChangeBuildingLocation/LICENSE.md +1 -1
- data/lib/measures/ChangeBuildingLocation/measure.rb +3 -3
- data/lib/measures/ChangeBuildingLocation/measure.xml +17 -17
- data/lib/measures/ChangeBuildingLocation/resources/epw.rb +1 -1
- data/lib/measures/ChangeBuildingLocation/resources/stat_file.rb +1 -1
- data/lib/measures/EnableIdealAirLoadsForAllZones/LICENSE.md +1 -1
- data/lib/measures/EnableIdealAirLoadsForAllZones/measure.rb +1 -1
- data/lib/measures/EnableIdealAirLoadsForAllZones/measure.xml +9 -8
- data/lib/measures/ExportScheduleCSV/LICENSE.md +1 -1
- data/lib/measures/ExportScheduleCSV/measure.rb +1 -1
- data/lib/measures/ExportScheduleCSV/measure.xml +11 -11
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/LICENSE.md +1 -1
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.rb +1 -1
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.xml +5 -5
- data/lib/measures/MeterFlodPlot/LICENSE.md +1 -1
- data/lib/measures/MeterFlodPlot/measure.rb +1 -1
- data/lib/measures/MeterFlodPlot/measure.xml +11 -11
- data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/LICENSE.md +1 -1
- data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.rb +1 -1
- data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.xml +8 -7
- data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/LICENSE.md +1 -1
- data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.rb +1 -1
- data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.xml +8 -7
- data/lib/measures/PredictedMeanVote/LICENSE.md +1 -1
- data/lib/measures/PredictedMeanVote/measure.rb +1 -1
- data/lib/measures/PredictedMeanVote/measure.xml +14 -13
- data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/LICENSE.md +1 -1
- data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.rb +1 -1
- data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.xml +9 -8
- data/lib/measures/RemoveUnusedDefaultProfiles/LICENSE.md +1 -1
- data/lib/measures/RemoveUnusedDefaultProfiles/measure.rb +1 -1
- data/lib/measures/RemoveUnusedDefaultProfiles/measure.xml +9 -8
- data/lib/measures/ReplaceExteriorWindowConstruction/LICENSE.md +1 -1
- data/lib/measures/ReplaceExteriorWindowConstruction/measure.rb +1 -1
- data/lib/measures/ReplaceExteriorWindowConstruction/measure.xml +11 -10
- data/lib/measures/ReplaceThermostatSchedules/LICENSE.md +1 -1
- data/lib/measures/ReplaceThermostatSchedules/measure.rb +1 -1
- data/lib/measures/ReplaceThermostatSchedules/measure.xml +12 -11
- data/lib/measures/ReportModelChanges/LICENSE.md +1 -1
- data/lib/measures/ReportModelChanges/measure.rb +1 -1
- data/lib/measures/ReportModelChanges/measure.xml +5 -5
- data/lib/measures/RunPeriod/LICENSE.md +1 -1
- data/lib/measures/RunPeriod/measure.rb +1 -1
- data/lib/measures/RunPeriod/measure.xml +19 -18
- data/lib/measures/RunPeriodMultiple/LICENSE.md +1 -1
- data/lib/measures/RunPeriodMultiple/measure.rb +1 -1
- data/lib/measures/RunPeriodMultiple/measure.xml +4 -4
- data/lib/measures/ServerDirectoryCleanup/LICENSE.md +1 -1
- data/lib/measures/ServerDirectoryCleanup/measure.rb +1 -1
- data/lib/measures/ServerDirectoryCleanup/measure.xml +16 -16
- data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/LICENSE.md +1 -1
- data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.rb +1 -1
- data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.xml +10 -9
- data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/LICENSE.md +1 -1
- data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.rb +1 -1
- data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.xml +10 -9
- data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/LICENSE.md +1 -1
- data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.rb +1 -1
- data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.xml +8 -7
- data/lib/measures/SetEnergyPlusLightObjectsLPD/LICENSE.md +1 -1
- data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.rb +1 -1
- data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.xml +8 -7
- data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/LICENSE.md +1 -1
- data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.rb +1 -1
- data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.xml +8 -7
- data/lib/measures/SetGasBurnerEfficiency/LICENSE.md +1 -1
- data/lib/measures/SetGasBurnerEfficiency/measure.rb +1 -1
- data/lib/measures/SetGasBurnerEfficiency/measure.xml +10 -9
- data/lib/measures/SetLifecycleCostParameters/LICENSE.md +1 -1
- data/lib/measures/SetLifecycleCostParameters/measure.rb +1 -1
- data/lib/measures/SetLifecycleCostParameters/measure.xml +8 -7
- data/lib/measures/SetLightingLoadsByLPD/LICENSE.md +1 -1
- data/lib/measures/SetLightingLoadsByLPD/measure.rb +1 -1
- data/lib/measures/SetLightingLoadsByLPD/measure.xml +10 -9
- data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/LICENSE.md +1 -1
- data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.rb +1 -1
- data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.xml +20 -19
- data/lib/measures/SetThermostatSchedules/LICENSE.md +1 -1
- data/lib/measures/SetThermostatSchedules/measure.rb +1 -1
- data/lib/measures/SetThermostatSchedules/measure.xml +12 -11
- data/lib/measures/ShiftScheduleProfileTime/LICENSE.md +1 -1
- data/lib/measures/ShiftScheduleProfileTime/measure.rb +1 -1
- data/lib/measures/ShiftScheduleProfileTime/measure.xml +10 -9
- data/lib/measures/SwapLightsDefinition/LICENSE.md +1 -1
- data/lib/measures/SwapLightsDefinition/measure.rb +1 -1
- data/lib/measures/SwapLightsDefinition/measure.xml +10 -9
- data/lib/measures/UnmetLoadHoursTroubleshooting/LICENSE.md +1 -1
- data/lib/measures/UnmetLoadHoursTroubleshooting/measure.rb +1 -1
- data/lib/measures/UnmetLoadHoursTroubleshooting/measure.xml +11 -11
- data/lib/measures/VentilationQAQC/LICENSE.md +1 -1
- data/lib/measures/VentilationQAQC/measure.rb +1 -1
- data/lib/measures/VentilationQAQC/measure.xml +17 -17
- data/lib/measures/ZoneReport/LICENSE.md +1 -1
- data/lib/measures/ZoneReport/measure.rb +1 -1
- data/lib/measures/ZoneReport/measure.xml +11 -11
- data/lib/measures/add_ems_to_control_ev_charging/LICENSE.MD.txt +1 -1
- data/lib/measures/add_ems_to_control_ev_charging/LICENSE.md +1 -1
- data/lib/measures/add_ems_to_control_ev_charging/measure.rb +2 -1
- data/lib/measures/add_ems_to_control_ev_charging/measure.xml +14 -10
- data/lib/measures/add_ev_load/LICENSE.MD.txt +1 -1
- data/lib/measures/add_ev_load/LICENSE.md +1 -1
- data/lib/measures/add_ev_load/measure.rb +5 -2
- data/lib/measures/add_ev_load/measure.xml +210 -15
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/PSN_BuildingKey.csv → PSN_BuildingKey.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/PSN_BuildingKey_v2.csv → PSN_BuildingKey_v2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow1_flex1.csv → chg1_dow1_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow1_flex2.csv → chg1_dow1_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow1_flex3.csv → chg1_dow1_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow2_flex1.csv → chg1_dow2_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow2_flex2.csv → chg1_dow2_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow2_flex3.csv → chg1_dow2_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow3_flex1.csv → chg1_dow3_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow3_flex2.csv → chg1_dow3_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow3_flex3.csv → chg1_dow3_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow1_flex1.csv → chg2_dow1_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow1_flex2.csv → chg2_dow1_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow1_flex3.csv → chg2_dow1_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow2_flex1.csv → chg2_dow2_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow2_flex2.csv → chg2_dow2_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow2_flex3.csv → chg2_dow2_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow3_flex1.csv → chg2_dow3_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow3_flex2.csv → chg2_dow3_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow3_flex3.csv → chg2_dow3_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow1_flex1.csv → chg3_dow1_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow1_flex2.csv → chg3_dow1_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow1_flex3.csv → chg3_dow1_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow2_flex1.csv → chg3_dow2_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow2_flex2.csv → chg3_dow2_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow2_flex3.csv → chg3_dow2_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow3_flex1.csv → chg3_dow3_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow3_flex2.csv → chg3_dow3_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow3_flex3.csv → chg3_dow3_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/fast_charge_15min_Saturday.csv → fast_charge_15min_Saturday.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/fast_charge_15min_Sunday.csv → fast_charge_15min_Sunday.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/fast_charge_15min_Weekday.csv → fast_charge_15min_Weekday.csv} +0 -0
- data/lib/measures/add_rooftop_pv/LICENSE.md +1 -1
- data/lib/measures/add_rooftop_pv/measure.rb +1 -1
- data/lib/measures/add_rooftop_pv/measure.xml +5 -5
- data/lib/measures/add_zone_mixing_object/LICENSE.md +1 -1
- data/lib/measures/add_zone_mixing_object/measure.rb +1 -1
- data/lib/measures/add_zone_mixing_object/measure.xml +8 -7
- data/lib/measures/add_zone_ventilation_design_flow_rate_object/LICENSE.md +1 -1
- data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.rb +1 -1
- data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.xml +8 -7
- data/lib/measures/air_wall_zone_mixing/LICENSE.md +1 -1
- data/lib/measures/air_wall_zone_mixing/measure.rb +1 -1
- data/lib/measures/air_wall_zone_mixing/measure.xml +5 -5
- data/lib/measures/envelope_and_internal_load_breakdown/LICENSE.md +1 -1
- data/lib/measures/envelope_and_internal_load_breakdown/measure.rb +1 -1
- data/lib/measures/envelope_and_internal_load_breakdown/measure.xml +8 -8
- data/lib/measures/envelope_and_internal_load_breakdown/resources/os_lib_reporting_envelope_and_internal_loads_breakdown.rb +1 -1
- data/lib/measures/envelope_and_internal_load_breakdown/resources/report.html.erb +4 -1
- data/lib/measures/example_report/LICENSE.md +1 -1
- data/lib/measures/example_report/measure.rb +1 -1
- data/lib/measures/example_report/measure.xml +14 -14
- data/lib/measures/example_report/resources/os_lib_reporting_example.rb +1 -1
- data/lib/measures/example_report/resources/report.html.erb +4 -1
- data/lib/measures/gem_env_report/LICENSE.md +1 -1
- data/lib/measures/gem_env_report/measure.rb +1 -1
- data/lib/measures/gem_env_report/measure.xml +13 -12
- data/lib/measures/gem_env_report/resources/gem_env_info.rb +1 -1
- data/lib/measures/gem_env_report/resources/openstudio_info.rb +1 -1
- data/lib/measures/gem_env_report/resources/run_gem_env_info.rb +1 -1
- data/lib/measures/gem_env_report/resources/run_openstudio_info.rb +1 -1
- data/lib/measures/generic_qaqc/LICENSE.md +1 -1
- data/lib/measures/generic_qaqc/measure.rb +6 -1
- data/lib/measures/generic_qaqc/measure.xml +48 -54
- data/lib/measures/generic_qaqc/resources/CreateResults.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_air_sys_temps.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_calibration.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_cond_zns.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_domestic_hot_water.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_envelope_conductance.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_eui_by_end_use.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_eui_reasonableness.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_fan_pwr.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_internal_loads.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_mech_sys_capacity.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_mech_sys_efficiency.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_mech_sys_part_load_eff.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_mech_sys_type.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_part_loads.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_placeholder.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_plant_cap.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_plant_temps.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_plenum_loads.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_pump_pwr.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_sch_coord.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_schedules.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_simultaneous_heating_and_cooling.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_supply_air_and_thermostat_temp_difference.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_weather_files.rb +1 -1
- data/lib/measures/generic_qaqc/resources/os_lib_reporting_qaqc.rb +1 -1
- data/lib/measures/generic_qaqc/resources/report.html.erb +4 -1
- data/lib/measures/get_site_from_building_component_library/LICENSE.md +1 -1
- data/lib/measures/get_site_from_building_component_library/measure.rb +1 -1
- data/lib/measures/get_site_from_building_component_library/measure.xml +6 -6
- data/lib/measures/hvac_psychrometric_chart/LICENSE.md +1 -1
- data/lib/measures/hvac_psychrometric_chart/measure.rb +1 -1
- data/lib/measures/hvac_psychrometric_chart/measure.xml +15 -16
- data/lib/measures/hvac_psychrometric_chart/resources/report.html.erb +4 -1
- data/lib/measures/inject_idf_objects/LICENSE.md +1 -1
- data/lib/measures/inject_idf_objects/measure.rb +1 -1
- data/lib/measures/inject_idf_objects/measure.xml +10 -10
- data/lib/measures/openstudio_results/LICENSE.md +1 -1
- data/lib/measures/openstudio_results/measure.rb +6 -4
- data/lib/measures/openstudio_results/measure.xml +174 -162
- data/lib/measures/openstudio_results/resources/Siz.AirConditionerVariableRefrigerantFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVAC.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAir.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitarySystem.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalDualDuctVAV.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeCooledBeam.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeFourPipeInduction.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctParallelPIUReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctSeriesPIUReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctUncontrolled.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVHeatAndCoolNoReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVHeatAndCoolReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVNoReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.BoilerHotWater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.BoilerSteam.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ChillerAbsorption.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ChillerAbsorptionIndirect.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ChillerElectricEIR.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ChillerHeaterPerformanceElectricEIR.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeedStageData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXSingleSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoStageWithHumidityControlMode.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableRefrigerantFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableSpeedSpeedData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingLowTempRadiantVarFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpEquationFit.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXMultiSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXMultiSpeedStageData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXSingleSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableRefrigerantFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableSpeedSpeedData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDesuperheater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingElectric.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGas.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGasMultiStage.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGasMultiStageStageData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingLowTempRadiantVarFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterBaseboard.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterBaseboardRadiant.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpEquationFit.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilPerformanceDXCooling.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilSystemCoolingDXHeatExchangerAssisted.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilSystemCoolingWaterHeatExchangerAssisted.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingAirToWaterHeatPump.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingAirToWaterHeatPumpWrapped.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingDesuperheater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ControllerOutdoorAir.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoolingTowerSingleSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoolingTowerTwoSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoolingTowerVariableSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.DistrictCooling.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.DistrictHeating.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterInverterLookUpTable.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterInverterSimple.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterStorageConverter.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterStorageSimple.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.EvaporativeCoolerDirectResearchSpecial.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.EvaporativeCoolerIndirectResearchSpecial.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.EvaporativeFluidCoolerSingleSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.EvaporativeFluidCoolerTwoSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.FanConstantVolume.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.FanOnOff.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.FanVariableVolume.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.FanZoneExhaust.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.FluidCoolerSingleSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.FluidCoolerTwoSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellElectricalStorage.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellInverter.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellPowerModule.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.GeneratorMicroTurbine.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.GeneratorMicroTurbineHeatRecovery.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HVACComponent.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HeaderedPumpsConstantSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HeaderedPumpsVariableSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HeatExchangerAirToAirSensibleAndLatent.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HeatExchangerFluidToFluid.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HeatPumpWaterToWaterEquationFitCooling.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HeatPumpWaterToWaterEquationFitHeating.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HumidifierSteamElectric.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.Model.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ModelObject.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.PhotovoltaicPerformanceSimple.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.PlantComponentTemperatureSource.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.PlantLoop.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.PumpConstantSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.PumpVariableSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.RefrigerationSecondarySystem.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.RefrigerationSystem.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.RefrigerationTranscriticalSystem.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.SizingSystem.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.SolarCollectorFlatPlatePhotovoltaicThermal.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.SolarCollectorPerformancePhotovoltaicThermalSimple.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ThermalStorageChilledWaterStratified.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.WaterHeaterHeatPump.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.WaterHeaterHeatPumpWrappedCondenser.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.WaterHeaterMixed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.WaterHeaterStratified.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardConvectiveElectric.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardConvectiveWater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardRadiantConvectiveElectric.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardRadiantConvectiveWater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACEnergyRecoveryVentilator.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACFourPipeFanCoil.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACHighTemperatureRadiant.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACIdealLoadsAirSystem.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACLowTempRadiantConstFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACLowTempRadiantVarFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACPackagedTerminalAirConditioner.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACPackagedTerminalHeatPump.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACUnitHeater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACUnitVentilator.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACWaterToAirHeatPump.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneVentilationDesignFlowRate.rb +1 -1
- data/lib/measures/openstudio_results/resources/os_lib_reporting.rb +2 -2
- data/lib/measures/openstudio_results/resources/report.html.erb +4 -1
- data/lib/measures/remove_orphan_objects_and_unused_resources/LICENSE.md +1 -1
- data/lib/measures/remove_orphan_objects_and_unused_resources/measure.rb +1 -1
- data/lib/measures/remove_orphan_objects_and_unused_resources/measure.xml +8 -7
- data/lib/measures/set_electric_equipment_loads_by_epd/LICENSE.md +1 -1
- data/lib/measures/set_electric_equipment_loads_by_epd/measure.rb +1 -1
- data/lib/measures/set_electric_equipment_loads_by_epd/measure.xml +10 -9
- data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/LICENSE.md +1 -1
- data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.rb +1 -1
- data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.xml +17 -11
- data/lib/measures/set_run_period/LICENSE.md +1 -1
- data/lib/measures/set_run_period/measure.rb +1 -1
- data/lib/measures/set_run_period/measure.xml +5 -5
- data/lib/measures/set_space_infiltration_per_exterior_area/LICENSE.md +1 -1
- data/lib/measures/set_space_infiltration_per_exterior_area/measure.rb +1 -1
- data/lib/measures/set_space_infiltration_per_exterior_area/measure.xml +8 -7
- data/lib/measures/tariff_selection_block/LICENSE.md +1 -1
- data/lib/measures/tariff_selection_block/measure.rb +2 -2
- data/lib/measures/tariff_selection_block/measure.xml +5 -5
- data/lib/measures/tariff_selection_flat/LICENSE.md +1 -1
- data/lib/measures/tariff_selection_flat/measure.rb +2 -2
- data/lib/measures/tariff_selection_flat/measure.xml +5 -5
- data/lib/measures/tariff_selection_generic/LICENSE.md +1 -1
- data/lib/measures/tariff_selection_generic/README.md +2 -2
- data/lib/measures/tariff_selection_generic/measure.rb +1 -1
- data/lib/measures/tariff_selection_generic/measure.xml +25 -25
- data/lib/measures/tariff_selection_generic/resources/FlatEnergyCharge-Gas.idf +3 -3
- data/lib/measures/tariff_selection_generic/resources/IN-EIAMonthlyRateGas.idf +1 -1
- data/lib/measures/tariff_selection_time_and_date_dependant/LICENSE.md +1 -1
- data/lib/measures/tariff_selection_time_and_date_dependant/measure.rb +2 -2
- data/lib/measures/tariff_selection_time_and_date_dependant/measure.xml +5 -5
- data/lib/measures/view_data/LICENSE.md +1 -1
- data/lib/measures/view_data/measure.rb +1 -1
- data/lib/measures/view_data/measure.xml +30 -30
- data/lib/measures/view_data/resources/va3c.rb +1 -1
- data/lib/measures/view_model/LICENSE.md +1 -1
- data/lib/measures/view_model/measure.rb +1 -1
- data/lib/measures/view_model/measure.xml +47 -16
- data/lib/measures/view_model/resources/va3c.rb +1 -1
- data/lib/openstudio-common-measures.rb +1 -1
- data/lib/openstudio/common_measures.rb +1 -1
- data/lib/openstudio/common_measures/extension.rb +1 -1
- data/lib/openstudio/common_measures/version.rb +2 -2
- data/openstudio-common-measures.gemspec +4 -4
- metadata +42 -45
- data/lib/measures/generic_qaqc/resources/os_lib_helper_methods.rb +0 -399
- data/lib/measures/openstudio_results/resources/os_lib_helper_methods.rb +0 -399
- data/lib/measures/openstudio_results/resources/os_lib_schedules.rb +0 -962
@@ -1,5 +1,5 @@
|
|
1
1
|
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
3
3
|
# All rights reserved.
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
OpenStudio(R), Copyright (c) 2008-
|
1
|
+
OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
|
2
2
|
|
3
3
|
Redistribution and use in source and binary forms, with or without modification, are permitted
|
4
4
|
provided that the following conditions are met:
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
3
3
|
# All rights reserved.
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
@@ -3,8 +3,13 @@
|
|
3
3
|
<schema_version>3.0</schema_version>
|
4
4
|
<name>view_model</name>
|
5
5
|
<uid>f4669f10-fda5-489d-8e1c-7ca3c2d40378</uid>
|
6
|
-
|
7
|
-
<
|
6
|
+
<<<<<<< HEAD
|
7
|
+
<version_id>c4ef2a71-4e3b-4608-af7d-e5c5433641b9</version_id>
|
8
|
+
<version_modified>20210406T220308Z</version_modified>
|
9
|
+
=======
|
10
|
+
<version_id>de960ca7-2791-4d43-9783-9c7523d3e9f3</version_id>
|
11
|
+
<version_modified>20210406T202646Z</version_modified>
|
12
|
+
>>>>>>> origin/develop
|
8
13
|
<xml_checksum>1E1F8B97</xml_checksum>
|
9
14
|
<class_name>ViewModel</class_name>
|
10
15
|
<display_name>ViewModel</display_name>
|
@@ -54,10 +59,34 @@
|
|
54
59
|
<checksum>B313B958</checksum>
|
55
60
|
</file>
|
56
61
|
<file>
|
62
|
+
<<<<<<< HEAD
|
63
|
+
=======
|
64
|
+
<filename>LICENSE.md</filename>
|
65
|
+
<filetype>md</filetype>
|
66
|
+
<usage_type>license</usage_type>
|
67
|
+
<checksum>E0468DD6</checksum>
|
68
|
+
</file>
|
69
|
+
<file>
|
70
|
+
>>>>>>> origin/develop
|
71
|
+
<filename>README.md.erb</filename>
|
72
|
+
<filetype>erb</filetype>
|
73
|
+
<usage_type>readmeerb</usage_type>
|
74
|
+
<checksum>703C9964</checksum>
|
75
|
+
</file>
|
76
|
+
<file>
|
77
|
+
<filename>README.md</filename>
|
78
|
+
<filetype>md</filetype>
|
79
|
+
<usage_type>readme</usage_type>
|
80
|
+
<checksum>AF845B1C</checksum>
|
81
|
+
<<<<<<< HEAD
|
82
|
+
</file>
|
83
|
+
<file>
|
57
84
|
<filename>va3c.rb</filename>
|
58
85
|
<filetype>rb</filetype>
|
59
86
|
<usage_type>resource</usage_type>
|
60
|
-
<checksum>
|
87
|
+
<checksum>1FD61D41</checksum>
|
88
|
+
=======
|
89
|
+
>>>>>>> origin/develop
|
61
90
|
</file>
|
62
91
|
<file>
|
63
92
|
<version>
|
@@ -68,31 +97,33 @@
|
|
68
97
|
<filename>measure.rb</filename>
|
69
98
|
<filetype>rb</filetype>
|
70
99
|
<usage_type>script</usage_type>
|
71
|
-
|
100
|
+
<<<<<<< HEAD
|
101
|
+
<checksum>13D3ACA9</checksum>
|
102
|
+
=======
|
103
|
+
<checksum>E45B3599</checksum>
|
104
|
+
>>>>>>> origin/develop
|
72
105
|
</file>
|
73
106
|
<file>
|
74
107
|
<filename>ViewModel_Test.rb</filename>
|
75
108
|
<filetype>rb</filetype>
|
76
109
|
<usage_type>test</usage_type>
|
77
|
-
|
110
|
+
<<<<<<< HEAD
|
111
|
+
<checksum>81008696</checksum>
|
78
112
|
</file>
|
79
113
|
<file>
|
80
114
|
<filename>LICENSE.md</filename>
|
81
115
|
<filetype>md</filetype>
|
82
116
|
<usage_type>license</usage_type>
|
83
|
-
<checksum>
|
84
|
-
|
85
|
-
|
86
|
-
<filename>README.md.erb</filename>
|
87
|
-
<filetype>erb</filetype>
|
88
|
-
<usage_type>readmeerb</usage_type>
|
89
|
-
<checksum>703C9964</checksum>
|
117
|
+
<checksum>A21A3ED2</checksum>
|
118
|
+
=======
|
119
|
+
<checksum>F9B33E01</checksum>
|
90
120
|
</file>
|
91
121
|
<file>
|
92
|
-
<filename>
|
93
|
-
<filetype>
|
94
|
-
<usage_type>
|
95
|
-
<checksum>
|
122
|
+
<filename>va3c.rb</filename>
|
123
|
+
<filetype>rb</filetype>
|
124
|
+
<usage_type>resource</usage_type>
|
125
|
+
<checksum>3564D62E</checksum>
|
126
|
+
>>>>>>> origin/develop
|
96
127
|
</file>
|
97
128
|
</files>
|
98
129
|
</measure>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
3
3
|
# All rights reserved.
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
3
3
|
# All rights reserved.
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
3
3
|
# All rights reserved.
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
3
3
|
# All rights reserved.
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
3
3
|
# All rights reserved.
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
@@ -35,6 +35,6 @@
|
|
35
35
|
|
36
36
|
module OpenStudio
|
37
37
|
module CommonMeasures
|
38
|
-
VERSION = '0.
|
38
|
+
VERSION = '0.4.0'.freeze
|
39
39
|
end
|
40
40
|
end
|
@@ -26,11 +26,11 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
27
|
spec.require_paths = ['lib']
|
28
28
|
|
29
|
-
spec.required_ruby_version = '~> 2.
|
29
|
+
spec.required_ruby_version = '~> 2.7.0'
|
30
30
|
|
31
|
-
spec.add_dependency 'bundler', '
|
32
|
-
spec.add_dependency 'openstudio-extension', '~> 0.
|
33
|
-
spec.add_dependency 'openstudio-standards', '~> 0.2.
|
31
|
+
spec.add_dependency 'bundler', '>= 2.1'
|
32
|
+
spec.add_dependency 'openstudio-extension', '~> 0.4.2'
|
33
|
+
spec.add_dependency 'openstudio-standards', '~> 0.2.13'
|
34
34
|
|
35
35
|
spec.add_development_dependency 'rake', '~> 13.0'
|
36
36
|
spec.add_development_dependency 'rspec', '~> 3.9'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstudio-common-measures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Goldwasser
|
@@ -9,20 +9,20 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-04-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '2.1'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '2.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
@@ -31,28 +31,28 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.
|
34
|
+
version: 0.4.2
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
41
|
+
version: 0.4.2
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: openstudio-standards
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.2.
|
48
|
+
version: 0.2.13
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.2.
|
55
|
+
version: 0.2.13
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rake
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -347,38 +347,38 @@ files:
|
|
347
347
|
- lib/measures/add_ev_load/README.md
|
348
348
|
- lib/measures/add_ev_load/measure.rb
|
349
349
|
- lib/measures/add_ev_load/measure.xml
|
350
|
-
- lib/measures/add_ev_load/resources/
|
351
|
-
- lib/measures/add_ev_load/resources/
|
352
|
-
- lib/measures/add_ev_load/resources/
|
353
|
-
- lib/measures/add_ev_load/resources/
|
354
|
-
- lib/measures/add_ev_load/resources/
|
355
|
-
- lib/measures/add_ev_load/resources/
|
356
|
-
- lib/measures/add_ev_load/resources/
|
357
|
-
- lib/measures/add_ev_load/resources/
|
358
|
-
- lib/measures/add_ev_load/resources/
|
359
|
-
- lib/measures/add_ev_load/resources/
|
360
|
-
- lib/measures/add_ev_load/resources/
|
361
|
-
- lib/measures/add_ev_load/resources/
|
362
|
-
- lib/measures/add_ev_load/resources/
|
363
|
-
- lib/measures/add_ev_load/resources/
|
364
|
-
- lib/measures/add_ev_load/resources/
|
365
|
-
- lib/measures/add_ev_load/resources/
|
366
|
-
- lib/measures/add_ev_load/resources/
|
367
|
-
- lib/measures/add_ev_load/resources/
|
368
|
-
- lib/measures/add_ev_load/resources/
|
369
|
-
- lib/measures/add_ev_load/resources/
|
370
|
-
- lib/measures/add_ev_load/resources/
|
371
|
-
- lib/measures/add_ev_load/resources/
|
372
|
-
- lib/measures/add_ev_load/resources/
|
373
|
-
- lib/measures/add_ev_load/resources/
|
374
|
-
- lib/measures/add_ev_load/resources/
|
375
|
-
- lib/measures/add_ev_load/resources/
|
376
|
-
- lib/measures/add_ev_load/resources/
|
377
|
-
- lib/measures/add_ev_load/resources/
|
378
|
-
- lib/measures/add_ev_load/resources/
|
379
|
-
- lib/measures/add_ev_load/resources/
|
380
|
-
- lib/measures/add_ev_load/resources/
|
381
|
-
- lib/measures/add_ev_load/resources/
|
350
|
+
- lib/measures/add_ev_load/resources/PSN_BuildingKey.csv
|
351
|
+
- lib/measures/add_ev_load/resources/PSN_BuildingKey_v2.csv
|
352
|
+
- lib/measures/add_ev_load/resources/chg1_dow1_flex1.csv
|
353
|
+
- lib/measures/add_ev_load/resources/chg1_dow1_flex2.csv
|
354
|
+
- lib/measures/add_ev_load/resources/chg1_dow1_flex3.csv
|
355
|
+
- lib/measures/add_ev_load/resources/chg1_dow2_flex1.csv
|
356
|
+
- lib/measures/add_ev_load/resources/chg1_dow2_flex2.csv
|
357
|
+
- lib/measures/add_ev_load/resources/chg1_dow2_flex3.csv
|
358
|
+
- lib/measures/add_ev_load/resources/chg1_dow3_flex1.csv
|
359
|
+
- lib/measures/add_ev_load/resources/chg1_dow3_flex2.csv
|
360
|
+
- lib/measures/add_ev_load/resources/chg1_dow3_flex3.csv
|
361
|
+
- lib/measures/add_ev_load/resources/chg2_dow1_flex1.csv
|
362
|
+
- lib/measures/add_ev_load/resources/chg2_dow1_flex2.csv
|
363
|
+
- lib/measures/add_ev_load/resources/chg2_dow1_flex3.csv
|
364
|
+
- lib/measures/add_ev_load/resources/chg2_dow2_flex1.csv
|
365
|
+
- lib/measures/add_ev_load/resources/chg2_dow2_flex2.csv
|
366
|
+
- lib/measures/add_ev_load/resources/chg2_dow2_flex3.csv
|
367
|
+
- lib/measures/add_ev_load/resources/chg2_dow3_flex1.csv
|
368
|
+
- lib/measures/add_ev_load/resources/chg2_dow3_flex2.csv
|
369
|
+
- lib/measures/add_ev_load/resources/chg2_dow3_flex3.csv
|
370
|
+
- lib/measures/add_ev_load/resources/chg3_dow1_flex1.csv
|
371
|
+
- lib/measures/add_ev_load/resources/chg3_dow1_flex2.csv
|
372
|
+
- lib/measures/add_ev_load/resources/chg3_dow1_flex3.csv
|
373
|
+
- lib/measures/add_ev_load/resources/chg3_dow2_flex1.csv
|
374
|
+
- lib/measures/add_ev_load/resources/chg3_dow2_flex2.csv
|
375
|
+
- lib/measures/add_ev_load/resources/chg3_dow2_flex3.csv
|
376
|
+
- lib/measures/add_ev_load/resources/chg3_dow3_flex1.csv
|
377
|
+
- lib/measures/add_ev_load/resources/chg3_dow3_flex2.csv
|
378
|
+
- lib/measures/add_ev_load/resources/chg3_dow3_flex3.csv
|
379
|
+
- lib/measures/add_ev_load/resources/fast_charge_15min_Saturday.csv
|
380
|
+
- lib/measures/add_ev_load/resources/fast_charge_15min_Sunday.csv
|
381
|
+
- lib/measures/add_ev_load/resources/fast_charge_15min_Weekday.csv
|
382
382
|
- lib/measures/add_rooftop_pv/LICENSE.md
|
383
383
|
- lib/measures/add_rooftop_pv/README.md
|
384
384
|
- lib/measures/add_rooftop_pv/README.md.erb
|
@@ -460,7 +460,6 @@ files:
|
|
460
460
|
- lib/measures/generic_qaqc/resources/check_supply_air_and_thermostat_temp_difference.rb
|
461
461
|
- lib/measures/generic_qaqc/resources/check_weather_files.rb
|
462
462
|
- lib/measures/generic_qaqc/resources/design_doc.txt
|
463
|
-
- lib/measures/generic_qaqc/resources/os_lib_helper_methods.rb
|
464
463
|
- lib/measures/generic_qaqc/resources/os_lib_reporting_qaqc.rb
|
465
464
|
- lib/measures/generic_qaqc/resources/report.html.erb
|
466
465
|
- lib/measures/get_site_from_building_component_library/LICENSE.md
|
@@ -612,9 +611,7 @@ files:
|
|
612
611
|
- lib/measures/openstudio_results/resources/Siz.ZoneHVACUnitVentilator.rb
|
613
612
|
- lib/measures/openstudio_results/resources/Siz.ZoneHVACWaterToAirHeatPump.rb
|
614
613
|
- lib/measures/openstudio_results/resources/Siz.ZoneVentilationDesignFlowRate.rb
|
615
|
-
- lib/measures/openstudio_results/resources/os_lib_helper_methods.rb
|
616
614
|
- lib/measures/openstudio_results/resources/os_lib_reporting.rb
|
617
|
-
- lib/measures/openstudio_results/resources/os_lib_schedules.rb
|
618
615
|
- lib/measures/openstudio_results/resources/report.html.erb
|
619
616
|
- lib/measures/remove_orphan_objects_and_unused_resources/LICENSE.md
|
620
617
|
- lib/measures/remove_orphan_objects_and_unused_resources/README.md
|
@@ -695,7 +692,7 @@ licenses: []
|
|
695
692
|
metadata:
|
696
693
|
bug_tracker_uri: https://github.com/NREL/openstudio-common-measures-gem/issues
|
697
694
|
changelog_uri: https://github.com/NREL/openstudio-common-measures-gem/blob/develop/CHANGELOG.md
|
698
|
-
source_code_uri: https://github.com/NREL/openstudio-common-measures-gem/tree/v0.
|
695
|
+
source_code_uri: https://github.com/NREL/openstudio-common-measures-gem/tree/v0.4.0
|
699
696
|
post_install_message:
|
700
697
|
rdoc_options: []
|
701
698
|
require_paths:
|
@@ -704,7 +701,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
704
701
|
requirements:
|
705
702
|
- - "~>"
|
706
703
|
- !ruby/object:Gem::Version
|
707
|
-
version: 2.
|
704
|
+
version: 2.7.0
|
708
705
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
709
706
|
requirements:
|
710
707
|
- - ">="
|
@@ -1,399 +0,0 @@
|
|
1
|
-
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
|
3
|
-
# All rights reserved.
|
4
|
-
# Redistribution and use in source and binary forms, with or without
|
5
|
-
# modification, are permitted provided that the following conditions are met:
|
6
|
-
#
|
7
|
-
# (1) Redistributions of source code must retain the above copyright notice,
|
8
|
-
# this list of conditions and the following disclaimer.
|
9
|
-
#
|
10
|
-
# (2) Redistributions in binary form must reproduce the above copyright notice,
|
11
|
-
# this list of conditions and the following disclaimer in the documentation
|
12
|
-
# and/or other materials provided with the distribution.
|
13
|
-
#
|
14
|
-
# (3) Neither the name of the copyright holder nor the names of any contributors
|
15
|
-
# may be used to endorse or promote products derived from this software without
|
16
|
-
# specific prior written permission from the respective party.
|
17
|
-
#
|
18
|
-
# (4) Other than as required in clauses (1) and (2), distributions in any form
|
19
|
-
# of modifications or other derivative works may not use the "OpenStudio"
|
20
|
-
# trademark, "OS", "os", or any other confusingly similar designation without
|
21
|
-
# specific prior written permission from Alliance for Sustainable Energy, LLC.
|
22
|
-
#
|
23
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS
|
24
|
-
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
25
|
-
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
26
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE
|
27
|
-
# UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
|
28
|
-
# THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
29
|
-
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
30
|
-
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
31
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
32
|
-
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
33
|
-
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
34
|
-
# *******************************************************************************
|
35
|
-
|
36
|
-
module OsLib_HelperMethods
|
37
|
-
# populate choice argument from model objects
|
38
|
-
def self.populateChoiceArgFromModelObjects(model, modelObject_args_hash, includeBuilding = nil)
|
39
|
-
# populate choice argument for constructions that are applied to surfaces in the model
|
40
|
-
modelObject_handles = OpenStudio::StringVector.new
|
41
|
-
modelObject_display_names = OpenStudio::StringVector.new
|
42
|
-
|
43
|
-
# looping through sorted hash of constructions
|
44
|
-
modelObject_args_hash.sort.map do |key, value|
|
45
|
-
modelObject_handles << value.handle.to_s
|
46
|
-
modelObject_display_names << key
|
47
|
-
end
|
48
|
-
|
49
|
-
unless includeBuilding.nil?
|
50
|
-
# add building to string vector with space type
|
51
|
-
building = model.getBuilding
|
52
|
-
modelObject_handles << building.handle.to_s
|
53
|
-
modelObject_display_names << includeBuilding
|
54
|
-
end
|
55
|
-
|
56
|
-
result = { 'modelObject_handles' => modelObject_handles, 'modelObject_display_names' => modelObject_display_names }
|
57
|
-
return result
|
58
|
-
end
|
59
|
-
|
60
|
-
# create variables in run from user arguments
|
61
|
-
def self.createRunVariables(runner, model, user_arguments, arguments)
|
62
|
-
result = {}
|
63
|
-
|
64
|
-
error = false
|
65
|
-
# use the built-in error checking
|
66
|
-
unless runner.validateUserArguments(arguments, user_arguments)
|
67
|
-
error = true
|
68
|
-
runner.registerError('Invalid argument values.')
|
69
|
-
end
|
70
|
-
|
71
|
-
user_arguments.each do |argument|
|
72
|
-
# get argument info
|
73
|
-
arg = user_arguments[argument]
|
74
|
-
arg_type = arg.print.lines($/)[1]
|
75
|
-
|
76
|
-
# create argument variable
|
77
|
-
if arg_type.include? 'Double, Required'
|
78
|
-
eval("result[\"#{arg.name}\"] = runner.getDoubleArgumentValue(\"#{arg.name}\", user_arguments)")
|
79
|
-
elsif arg_type.include? 'Integer, Required'
|
80
|
-
eval("result[\"#{arg.name}\"] = runner.getIntegerArgumentValue(\"#{arg.name}\", user_arguments)")
|
81
|
-
elsif arg_type.include? 'String, Required'
|
82
|
-
eval("result[\"#{arg.name}\"] = runner.getStringArgumentValue(\"#{arg.name}\", user_arguments)")
|
83
|
-
elsif arg_type.include? 'Boolean, Required'
|
84
|
-
eval("result[\"#{arg.name}\"] = runner.getBoolArgumentValue(\"#{arg.name}\", user_arguments)")
|
85
|
-
elsif arg_type.include? 'Choice, Required'
|
86
|
-
eval("result[\"#{arg.name}\"] = runner.getStringArgumentValue(\"#{arg.name}\", user_arguments)")
|
87
|
-
else
|
88
|
-
puts 'not setup to handle all argument types yet, or any optional arguments'
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
if error
|
93
|
-
return false
|
94
|
-
else
|
95
|
-
return result
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
# check choice argument made from model objects
|
100
|
-
def self.checkChoiceArgFromModelObjects(object, variableName, to_ObjectType, runner, user_arguments)
|
101
|
-
apply_to_building = false
|
102
|
-
modelObject = nil
|
103
|
-
if object.empty?
|
104
|
-
handle = runner.getStringArgumentValue(variableName, user_arguments)
|
105
|
-
if handle.empty?
|
106
|
-
runner.registerError("No #{variableName} was chosen.") # this logic makes this not work on an optional model object argument
|
107
|
-
else
|
108
|
-
runner.registerError("The selected #{variableName} with handle '#{handle}' was not found in the model. It may have been removed by another measure.")
|
109
|
-
end
|
110
|
-
return false
|
111
|
-
else
|
112
|
-
if !eval("object.get.#{to_ObjectType}").empty?
|
113
|
-
modelObject = eval("object.get.#{to_ObjectType}").get
|
114
|
-
elsif !object.get.to_Building.empty?
|
115
|
-
apply_to_building = true
|
116
|
-
else
|
117
|
-
runner.registerError("Script Error - argument not showing up as #{variableName}.")
|
118
|
-
return false
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
result = { 'modelObject' => modelObject, 'apply_to_building' => apply_to_building }
|
123
|
-
end
|
124
|
-
|
125
|
-
# check choice argument made from model objects
|
126
|
-
def self.checkOptionalChoiceArgFromModelObjects(object, variableName, to_ObjectType, runner, user_arguments)
|
127
|
-
apply_to_building = false
|
128
|
-
modelObject = nil
|
129
|
-
if object.empty?
|
130
|
-
handle = runner.getOptionalStringArgumentValue(variableName, user_arguments)
|
131
|
-
if handle.empty?
|
132
|
-
# do nothing, this is a valid option
|
133
|
-
puts 'hello'
|
134
|
-
modelObject = nil
|
135
|
-
apply_to_building = false
|
136
|
-
else
|
137
|
-
runner.registerError("The selected #{variableName} with handle '#{handle}' was not found in the model. It may have been removed by another measure.")
|
138
|
-
return false
|
139
|
-
end
|
140
|
-
else
|
141
|
-
if !eval("object.get.#{to_ObjectType}").empty?
|
142
|
-
modelObject = eval("object.get.#{to_ObjectType}").get
|
143
|
-
elsif !object.get.to_Building.empty?
|
144
|
-
apply_to_building = true
|
145
|
-
else
|
146
|
-
runner.registerError("Script Error - argument not showing up as #{variableName}.")
|
147
|
-
return false
|
148
|
-
end
|
149
|
-
end
|
150
|
-
|
151
|
-
result = { 'modelObject' => modelObject, 'apply_to_building' => apply_to_building }
|
152
|
-
end
|
153
|
-
|
154
|
-
# check value of double arguments
|
155
|
-
def self.checkDoubleAndIntegerArguments(runner, user_arguments, arg_check_hash)
|
156
|
-
error = false
|
157
|
-
|
158
|
-
# get hash values
|
159
|
-
min = arg_check_hash['min']
|
160
|
-
max = arg_check_hash['max']
|
161
|
-
min_eq_bool = arg_check_hash['min_eq_bool']
|
162
|
-
max_eq_bool = arg_check_hash['max_eq_bool']
|
163
|
-
|
164
|
-
arg_check_hash['arg_array'].each do |argument|
|
165
|
-
argument = user_arguments[argument]
|
166
|
-
|
167
|
-
# get arg values
|
168
|
-
arg_value = nil
|
169
|
-
if argument.hasValue
|
170
|
-
arg_value = argument.valueDisplayName.to_f # instead of valueAsDouble so it allows integer arguments as well
|
171
|
-
elsif argument.hasDefaultValue
|
172
|
-
arg_value = argument.defaultValueDisplayName.to_f
|
173
|
-
end
|
174
|
-
arg_display = argument.displayName
|
175
|
-
|
176
|
-
unless min.nil?
|
177
|
-
if min_eq_bool
|
178
|
-
if arg_value < min
|
179
|
-
runner.registerError("Please enter value greater than or equal to #{min} for #{arg_display}.") # add in argument display name
|
180
|
-
error = true
|
181
|
-
end
|
182
|
-
else
|
183
|
-
if arg_value <= min
|
184
|
-
runner.registerError("Please enter value greater than #{min} for #{arg_display}.") # add in argument display name
|
185
|
-
error = true
|
186
|
-
end
|
187
|
-
end
|
188
|
-
end
|
189
|
-
unless max.nil?
|
190
|
-
if max_eq_bool
|
191
|
-
if arg_value > max
|
192
|
-
runner.registerError("Please enter value less than or equal to #{max} for #{arg_display}.") # add in argument display name
|
193
|
-
error = true
|
194
|
-
end
|
195
|
-
else
|
196
|
-
if arg_value >= max
|
197
|
-
runner.registerError("Please enter value less than #{max} for #{arg_display}.") # add in argument display name
|
198
|
-
error = true
|
199
|
-
end
|
200
|
-
end
|
201
|
-
end
|
202
|
-
end
|
203
|
-
|
204
|
-
# check for any errors
|
205
|
-
if error
|
206
|
-
return false
|
207
|
-
else
|
208
|
-
return true
|
209
|
-
end
|
210
|
-
end
|
211
|
-
|
212
|
-
# open channel to log info/warning/error messages
|
213
|
-
def self.setup_log_msgs(runner, debug = false)
|
214
|
-
# Open a channel to log info/warning/error messages
|
215
|
-
@msg_log = OpenStudio::StringStreamLogSink.new
|
216
|
-
if debug
|
217
|
-
@msg_log.setLogLevel(OpenStudio::Debug)
|
218
|
-
else
|
219
|
-
@msg_log.setLogLevel(OpenStudio::Info)
|
220
|
-
end
|
221
|
-
@start_time = Time.new
|
222
|
-
@runner = runner
|
223
|
-
end
|
224
|
-
|
225
|
-
# Get all the log messages and put into output
|
226
|
-
# for users to see.
|
227
|
-
def self.log_msgs
|
228
|
-
@msg_log.logMessages.each do |msg|
|
229
|
-
# DLM: you can filter on log channel here for now
|
230
|
-
if /openstudio.*/.match(msg.logChannel) # /openstudio\.model\..*/
|
231
|
-
# Skip certain messages that are irrelevant/misleading
|
232
|
-
next if msg.logMessage.include?('Skipping layer') || # Annoying/bogus "Skipping layer" warnings
|
233
|
-
msg.logChannel.include?('runmanager') || # RunManager messages
|
234
|
-
msg.logChannel.include?('setFileExtension') || # .ddy extension unexpected
|
235
|
-
msg.logChannel.include?('Translator') || # Forward translator and geometry translator
|
236
|
-
msg.logMessage.include?('UseWeatherFile') # 'UseWeatherFile' is not yet a supported option for YearDescription
|
237
|
-
|
238
|
-
# Report the message in the correct way
|
239
|
-
if msg.logLevel == OpenStudio::Info
|
240
|
-
@runner.registerInfo(msg.logMessage)
|
241
|
-
elsif msg.logLevel == OpenStudio::Warn
|
242
|
-
@runner.registerWarning("[#{msg.logChannel}] #{msg.logMessage}")
|
243
|
-
elsif msg.logLevel == OpenStudio::Error
|
244
|
-
@runner.registerError("[#{msg.logChannel}] #{msg.logMessage}")
|
245
|
-
elsif msg.logLevel == OpenStudio::Debug && @debug
|
246
|
-
@runner.registerInfo("DEBUG - #{msg.logMessage}")
|
247
|
-
end
|
248
|
-
end
|
249
|
-
end
|
250
|
-
@runner.registerInfo("Total Time = #{(Time.new - @start_time).round}sec.")
|
251
|
-
end
|
252
|
-
|
253
|
-
def self.check_upstream_measure_for_arg(runner, arg_name)
|
254
|
-
# 2.x methods (currently setup for measure display name but snake_case arg names)
|
255
|
-
arg_name_value = {}
|
256
|
-
runner.workflow.workflowSteps.each do |step|
|
257
|
-
if step.to_MeasureStep.is_initialized
|
258
|
-
measure_step = step.to_MeasureStep.get
|
259
|
-
|
260
|
-
measure_name = measure_step.measureDirName
|
261
|
-
if measure_step.name.is_initialized
|
262
|
-
measure_name = measure_step.name.get # this is instance name in PAT
|
263
|
-
end
|
264
|
-
if measure_step.result.is_initialized
|
265
|
-
result = measure_step.result.get
|
266
|
-
result.stepValues.each do |arg|
|
267
|
-
name = arg.name
|
268
|
-
value = arg.valueAsVariant.to_s
|
269
|
-
if name == arg_name
|
270
|
-
arg_name_value[:value] = value
|
271
|
-
arg_name_value[:measure_name] = measure_name
|
272
|
-
return arg_name_value # stop after find first one
|
273
|
-
end
|
274
|
-
end
|
275
|
-
else
|
276
|
-
# puts "No result for #{measure_name}"
|
277
|
-
end
|
278
|
-
else
|
279
|
-
# puts "This step is not a measure"
|
280
|
-
end
|
281
|
-
end
|
282
|
-
|
283
|
-
return arg_name_value
|
284
|
-
end
|
285
|
-
|
286
|
-
# populate choice argument from model objects. areaType should be string like "floorArea" or "exteriorArea"
|
287
|
-
# note: it seems like spaceType.floorArea does account for multiplier, so I don't have to call this method unless I have a custom collection of spaces.
|
288
|
-
def self.getAreaOfSpacesInArray(model, spaceArray, areaType = 'floorArea')
|
289
|
-
# find selected floor spaces, make array and get floor area.
|
290
|
-
totalArea = 0
|
291
|
-
spaceAreaHash = {}
|
292
|
-
spaceArray.each do |space|
|
293
|
-
spaceArea = eval("space.#{areaType}*space.multiplier")
|
294
|
-
spaceAreaHash[space] = spaceArea
|
295
|
-
totalArea += spaceArea
|
296
|
-
end
|
297
|
-
|
298
|
-
result = { 'totalArea' => totalArea, 'spaceAreaHash' => spaceAreaHash }
|
299
|
-
return result
|
300
|
-
end
|
301
|
-
|
302
|
-
# runs conversion and neat string, and returns value with units in string, optionally before or after the value
|
303
|
-
def self.neatConvertWithUnitDisplay(double, fromString, toString, digits, unitBefore = false, unitAfter = true, space = true, parentheses = true)
|
304
|
-
# convert units
|
305
|
-
doubleConverted = OpenStudio.convert(double, fromString, toString)
|
306
|
-
if !doubleConverted.nil?
|
307
|
-
doubleConverted = doubleConverted.get
|
308
|
-
else
|
309
|
-
puts "Couldn't convert values, check string choices passed in. From: #{fromString}, To: #{toString}"
|
310
|
-
end
|
311
|
-
|
312
|
-
# get neat version of converted
|
313
|
-
neatConverted = OpenStudio.toNeatString(doubleConverted, digits, true)
|
314
|
-
|
315
|
-
# add prefix
|
316
|
-
if unitBefore
|
317
|
-
if space == true && parentheses == true
|
318
|
-
prefix = "(#{toString}) "
|
319
|
-
elsif space == true && parentheses == false
|
320
|
-
prefix = "(#{toString})"
|
321
|
-
elsif space == false && parentheses == true
|
322
|
-
prefix = "#{toString} "
|
323
|
-
else
|
324
|
-
prefix = toString.to_s
|
325
|
-
end
|
326
|
-
else
|
327
|
-
prefix = ''
|
328
|
-
end
|
329
|
-
|
330
|
-
# add suffix
|
331
|
-
if unitAfter
|
332
|
-
if space == true && parentheses == true
|
333
|
-
suffix = " (#{toString})"
|
334
|
-
elsif space == true && parentheses == false
|
335
|
-
suffix = "(#{toString})"
|
336
|
-
elsif space == false && parentheses == true
|
337
|
-
suffix = " #{toString}"
|
338
|
-
else
|
339
|
-
suffix = toString.to_s
|
340
|
-
end
|
341
|
-
else
|
342
|
-
suffix = ''
|
343
|
-
end
|
344
|
-
|
345
|
-
finalString = "#{prefix}#{neatConverted}#{suffix}"
|
346
|
-
|
347
|
-
return finalString
|
348
|
-
end
|
349
|
-
|
350
|
-
# helper that loops through lifecycle costs getting total costs under "Construction" and add to counter if occurs during year 0
|
351
|
-
def self.getTotalCostForObjects(objectArray, category = 'Construction', onlyYearFromStartZero = true)
|
352
|
-
counter = 0
|
353
|
-
objectArray.each do |object|
|
354
|
-
object_LCCs = object.lifeCycleCosts
|
355
|
-
object_LCCs.each do |object_LCC|
|
356
|
-
if object_LCC.category == category
|
357
|
-
if onlyYearFromStartZero == false || object_LCC.yearsFromStart == 0
|
358
|
-
counter += object_LCC.totalCost
|
359
|
-
end
|
360
|
-
end
|
361
|
-
end
|
362
|
-
end
|
363
|
-
|
364
|
-
return counter
|
365
|
-
end
|
366
|
-
|
367
|
-
# helper that loops through lifecycle costs getting total costs under "Construction" and add to counter if occurs during year 0
|
368
|
-
def self.getSpaceTypeStandardsInformation(spaceTypeArray)
|
369
|
-
# hash of space types
|
370
|
-
spaceTypeStandardsInfoHash = {}
|
371
|
-
|
372
|
-
spaceTypeArray.each do |spaceType|
|
373
|
-
# get standards building
|
374
|
-
if !spaceType.standardsBuildingType.empty?
|
375
|
-
standardsBuilding = spaceType.standardsBuildingType.get
|
376
|
-
else
|
377
|
-
standardsBuilding = nil
|
378
|
-
end
|
379
|
-
|
380
|
-
# get standards space type
|
381
|
-
if !spaceType.standardsSpaceType.empty?
|
382
|
-
standardsSpaceType = spaceType.standardsSpaceType.get
|
383
|
-
else
|
384
|
-
standardsSpaceType = nil
|
385
|
-
end
|
386
|
-
|
387
|
-
# populate hash
|
388
|
-
spaceTypeStandardsInfoHash[spaceType] = [standardsBuilding, standardsSpaceType]
|
389
|
-
end
|
390
|
-
|
391
|
-
return spaceTypeStandardsInfoHash
|
392
|
-
end
|
393
|
-
|
394
|
-
# OpenStudio has built in toNeatString method
|
395
|
-
# OpenStudio::toNeatString(double,2,true)# double,decimals, show commas
|
396
|
-
|
397
|
-
# OpenStudio has built in helper for unit conversion. That can be done using OpenStudio::convert() as shown below.
|
398
|
-
# OpenStudio::convert(double,"from unit string","to unit string").get
|
399
|
-
end
|