openstudio-common-measures 0.9.0 → 0.11.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 +17 -0
- data/Gemfile +10 -5
- data/Jenkinsfile +1 -1
- data/LICENSE.md +1 -1
- data/README.md +2 -0
- data/doc_templates/LICENSE.md +1 -1
- data/lib/measures/.rubocop.yml +6 -0
- data/lib/measures/AddCostPerAreaToConstruction/LICENSE.md +1 -1
- data/lib/measures/AddCostPerAreaToConstruction/measure.xml +21 -21
- data/lib/measures/AddCostPerFloorAreaToBuilding/LICENSE.md +1 -1
- data/lib/measures/AddCostPerFloorAreaToBuilding/measure.xml +25 -25
- data/lib/measures/AddCostPerFloorAreaToElectricEquipment/LICENSE.md +1 -1
- data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.xml +21 -21
- data/lib/measures/AddCostPerFloorAreaToLights/LICENSE.md +1 -1
- data/lib/measures/AddCostPerFloorAreaToLights/measure.xml +21 -21
- data/lib/measures/AddCostPerFloorAreaUnusedToLights/LICENSE.md +1 -1
- data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.xml +21 -21
- data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/LICENSE.md +1 -1
- data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.xml +24 -24
- data/lib/measures/AddCostperAreatoUnusedConstruction/LICENSE.md +1 -1
- data/lib/measures/AddCostperAreatoUnusedConstruction/measure.xml +21 -21
- data/lib/measures/AddExteriorLights/LICENSE.md +1 -1
- data/lib/measures/AddExteriorLights/measure.xml +19 -19
- data/lib/measures/AddMeter/LICENSE.md +1 -1
- data/lib/measures/AddMeter/measure.xml +15 -15
- data/lib/measures/AddOutputDiagnostics/LICENSE.md +1 -1
- data/lib/measures/AddOutputDiagnostics/measure.rb +1 -1
- data/lib/measures/AddOutputDiagnostics/measure.xml +18 -18
- data/lib/measures/AddOutputVariable/LICENSE.md +1 -1
- data/lib/measures/AddOutputVariable/measure.xml +15 -15
- data/lib/measures/AddSimplePvToShadingSurfacesByType/LICENSE.md +1 -1
- data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.xml +24 -24
- data/lib/measures/AddThermalComfortModelTypes/LICENSE.md +1 -1
- data/lib/measures/AddThermalComfortModelTypes/measure.xml +21 -21
- data/lib/measures/AdjustSystemEfficiencies/LICENSE.md +1 -1
- data/lib/measures/AdjustSystemEfficiencies/measure.xml +12 -12
- data/lib/measures/AdjustThermostatSetpointsByDegrees/LICENSE.md +1 -1
- data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.xml +23 -23
- data/lib/measures/ChangeBuildingLocation/LICENSE.md +1 -1
- data/lib/measures/ChangeBuildingLocation/README.md +1 -1
- data/lib/measures/ChangeBuildingLocation/measure.rb +8 -13
- data/lib/measures/ChangeBuildingLocation/measure.xml +104 -86
- data/lib/measures/ChangeBuildingLocation/resources/epw.rb +7 -2
- data/lib/measures/EnableIdealAirLoadsForAllZones/LICENSE.md +1 -1
- data/lib/measures/EnableIdealAirLoadsForAllZones/measure.xml +22 -22
- data/lib/measures/ExportScheduleCSV/LICENSE.md +1 -1
- data/lib/measures/ExportScheduleCSV/measure.xml +29 -29
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/LICENSE.md +1 -1
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.xml +29 -29
- data/lib/measures/MeterFlodPlot/LICENSE.md +1 -1
- data/lib/measures/MeterFlodPlot/measure.xml +35 -35
- data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/LICENSE.md +1 -1
- data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.xml +24 -24
- data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/LICENSE.md +1 -1
- data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.xml +24 -24
- data/lib/measures/PredictedMeanVote/LICENSE.md +1 -1
- data/lib/measures/PredictedMeanVote/measure.xml +23 -23
- data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/LICENSE.md +1 -1
- data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.xml +21 -21
- data/lib/measures/RemoveUnusedDefaultProfiles/LICENSE.md +1 -1
- data/lib/measures/RemoveUnusedDefaultProfiles/measure.xml +19 -19
- data/lib/measures/ReplaceExteriorWindowConstruction/LICENSE.md +1 -1
- data/lib/measures/ReplaceExteriorWindowConstruction/measure.xml +29 -29
- data/lib/measures/ReplaceModel/LICENSE.md +1 -1
- data/lib/measures/ReplaceModel/README.md +1 -3
- data/lib/measures/ReplaceModel/measure.xml +32 -14
- data/lib/measures/ReplaceThermostatSchedules/LICENSE.md +1 -1
- data/lib/measures/ReplaceThermostatSchedules/measure.xml +17 -17
- data/lib/measures/ReportModelChanges/LICENSE.md +1 -1
- data/lib/measures/ReportModelChanges/measure.xml +23 -23
- data/lib/measures/RunPeriod/LICENSE.md +1 -1
- data/lib/measures/RunPeriod/measure.xml +14 -14
- data/lib/measures/RunPeriodMultiple/LICENSE.md +1 -1
- data/lib/measures/RunPeriodMultiple/measure.xml +12 -12
- data/lib/measures/ServerDirectoryCleanup/LICENSE.md +1 -1
- data/lib/measures/ServerDirectoryCleanup/README.md +14 -14
- data/lib/measures/ServerDirectoryCleanup/measure.rb +22 -18
- data/lib/measures/ServerDirectoryCleanup/measure.xml +44 -44
- data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/LICENSE.md +1 -1
- data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.xml +23 -23
- data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/LICENSE.md +1 -1
- data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.xml +23 -23
- data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/LICENSE.md +1 -1
- data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.xml +24 -24
- data/lib/measures/SetEnergyPlusLightObjectsLPD/LICENSE.md +1 -1
- data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.xml +24 -24
- data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/LICENSE.md +1 -1
- data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.xml +24 -24
- data/lib/measures/SetGasBurnerEfficiency/LICENSE.md +1 -1
- data/lib/measures/SetGasBurnerEfficiency/measure.xml +23 -23
- data/lib/measures/SetLifecycleCostParameters/LICENSE.md +1 -1
- data/lib/measures/SetLifecycleCostParameters/measure.xml +15 -15
- data/lib/measures/SetLightingLoadsByLPD/LICENSE.md +1 -1
- data/lib/measures/SetLightingLoadsByLPD/measure.xml +35 -35
- data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/LICENSE.md +1 -1
- data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.xml +25 -25
- data/lib/measures/SetThermostatSchedules/LICENSE.md +1 -1
- data/lib/measures/SetThermostatSchedules/measure.xml +17 -17
- data/lib/measures/ShiftScheduleProfileTime/LICENSE.md +1 -1
- data/lib/measures/ShiftScheduleProfileTime/measure.xml +23 -23
- data/lib/measures/SwapLightsDefinition/LICENSE.md +1 -1
- data/lib/measures/SwapLightsDefinition/measure.xml +25 -25
- data/lib/measures/UnmetLoadHoursTroubleshooting/LICENSE.md +1 -1
- data/lib/measures/UnmetLoadHoursTroubleshooting/measure.xml +43 -43
- data/lib/measures/VentilationQAQC/LICENSE.md +1 -1
- data/lib/measures/VentilationQAQC/measure.xml +31 -31
- data/lib/measures/XcelEDAReportingandQAQC/LICENSE.md +1 -1
- data/lib/measures/XcelEDAReportingandQAQC/measure.xml +4 -4
- data/lib/measures/XcelEDATariffSelectionandModelSetup/LICENSE.md +1 -1
- data/lib/measures/XcelEDATariffSelectionandModelSetup/measure.xml +73 -73
- data/lib/measures/ZoneReport/LICENSE.md +1 -1
- data/lib/measures/ZoneReport/measure.xml +35 -35
- data/lib/measures/add_ems_emissions_reporting/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- data/lib/measures/add_ev_load/measure.xml +35 -35
- data/lib/measures/add_rooftop_pv/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- data/lib/measures/add_zone_mixing_object/measure.xml +19 -19
- 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.xml +21 -21
- data/lib/measures/air_wall_zone_mixing/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- data/lib/measures/create_csv_output/measure.xml +28 -28
- data/lib/measures/envelope_and_internal_load_breakdown/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- data/lib/measures/gem_env_report/measure.xml +32 -32
- data/lib/measures/generic_qaqc/LICENSE.md +1 -1
- data/lib/measures/generic_qaqc/README.md +0 -32
- data/lib/measures/generic_qaqc/measure.rb +13 -17
- data/lib/measures/generic_qaqc/measure.xml +15 -71
- 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/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- data/lib/measures/inject_idf_objects/measure.xml +31 -31
- data/lib/measures/openstudio_results/LICENSE.md +1 -1
- data/lib/measures/openstudio_results/README.md +10 -2
- data/lib/measures/openstudio_results/measure.rb +21 -13
- data/lib/measures/openstudio_results/measure.xml +404 -357
- data/lib/measures/openstudio_results/resources/Siz.AirConditionerVariableRefrigerantFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeed.rb +10 -0
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeedStageData.rb +3 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXSingleSpeed.rb +2 -2
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoSpeed.rb +4 -3
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpEquationFit.rb +6 -0
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit.rb +10 -0
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXMultiSpeed.rb +10 -0
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXSingleSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpEquationFit.rb +6 -0
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit.rb +10 -0
- data/lib/measures/openstudio_results/resources/Siz.CoilPerformanceDXCooling.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.FanSystemModel.rb +31 -0
- data/lib/measures/openstudio_results/resources/Siz.Model.rb +1 -0
- data/lib/measures/openstudio_results/resources/bootstrap.min.css +5 -0
- data/lib/measures/openstudio_results/resources/bootstrap.min.js +6 -0
- data/lib/measures/openstudio_results/resources/d3.min.js +5 -0
- data/lib/measures/openstudio_results/resources/dimple.v2.1.2.min.js +3 -0
- data/lib/measures/openstudio_results/resources/jquery.min.js +6 -0
- data/lib/measures/openstudio_results/resources/os_lib_reporting.rb +20 -8
- data/lib/measures/openstudio_results/resources/report.html.erb +6 -5
- data/lib/measures/remove_orphan_objects_and_unused_resources/LICENSE.md +1 -1
- data/lib/measures/remove_orphan_objects_and_unused_resources/measure.xml +24 -24
- data/lib/measures/set_electric_equipment_loads_by_epd/LICENSE.md +1 -1
- data/lib/measures/set_electric_equipment_loads_by_epd/measure.xml +33 -33
- 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.xml +19 -19
- data/lib/measures/set_run_period/LICENSE.md +1 -1
- data/lib/measures/set_run_period/measure.xml +19 -19
- data/lib/measures/set_space_infiltration_per_exterior_area/LICENSE.md +1 -1
- data/lib/measures/set_space_infiltration_per_exterior_area/README.md +11 -0
- data/lib/measures/set_space_infiltration_per_exterior_area/measure.rb +13 -0
- data/lib/measures/set_space_infiltration_per_exterior_area/measure.xml +42 -23
- data/lib/measures/shadow_calculation/LICENSE.md +1 -1
- data/lib/measures/shadow_calculation/measure.xml +18 -18
- data/lib/measures/simulation_control/README.md +120 -0
- data/lib/measures/simulation_control/README.md.erb +42 -0
- data/lib/measures/simulation_control/measure.rb +169 -0
- data/lib/measures/simulation_control/measure.xml +246 -0
- data/lib/measures/tariff_selection_block/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- data/lib/measures/view_data/README.md +8 -0
- data/lib/measures/view_data/measure.rb +32 -7
- data/lib/measures/view_data/measure.xml +83 -40
- data/lib/measures/view_data/resources/js/TweenLite.2.1.3.min.js +12 -0
- data/lib/measures/view_data/resources/js/dat.gui.0.7.9.min.js +13 -0
- data/lib/measures/view_data/resources/js/three.orbitcontrols.js +706 -0
- data/lib/measures/view_data/resources/js/three.r98.min.js +964 -0
- data/lib/measures/view_data/resources/report.html.in +170 -1837
- data/lib/measures/view_model/LICENSE.md +1 -1
- data/lib/measures/view_model/README.md +7 -1
- data/lib/measures/view_model/measure.rb +28 -2
- data/lib/measures/view_model/measure.xml +80 -36
- data/lib/measures/view_model/resources/js/TweenLite.2.1.3.min.js +12 -0
- data/lib/measures/view_model/resources/js/dat.gui.0.7.9.min.js +13 -0
- data/lib/measures/view_model/resources/js/three.orbitcontrols.js +706 -0
- data/lib/measures/view_model/resources/js/three.r98.min.js +964 -0
- data/lib/measures/view_model/resources/report.html.in +168 -1835
- data/lib/openstudio/common_measures/version.rb +1 -1
- data/openstudio-common-measures.gemspec +10 -4
- metadata +76 -15
@@ -5,10 +5,10 @@
|
|
5
5
|
# Server Directory Cleanup
|
6
6
|
|
7
7
|
## Description
|
8
|
-
|
8
|
+
Clean up files in the run directory
|
9
9
|
|
10
10
|
## Modeler Description
|
11
|
-
|
11
|
+
You can select which files to remove by the file types (eg: sql) as well as the sizing run directories
|
12
12
|
|
13
13
|
## Measure Type
|
14
14
|
ReportingMeasure
|
@@ -19,7 +19,7 @@ ReportingMeasure
|
|
19
19
|
## Arguments
|
20
20
|
|
21
21
|
|
22
|
-
### Remove sql files from run directory
|
22
|
+
### Remove 'sql' files from run directory
|
23
23
|
|
24
24
|
**Name:** sql,
|
25
25
|
**Type:** Boolean,
|
@@ -27,7 +27,7 @@ ReportingMeasure
|
|
27
27
|
**Required:** true,
|
28
28
|
**Model Dependent:** false
|
29
29
|
|
30
|
-
### Remove eso files from run directory
|
30
|
+
### Remove 'eso' files from run directory
|
31
31
|
|
32
32
|
**Name:** eso,
|
33
33
|
**Type:** Boolean,
|
@@ -35,7 +35,7 @@ ReportingMeasure
|
|
35
35
|
**Required:** true,
|
36
36
|
**Model Dependent:** false
|
37
37
|
|
38
|
-
### Remove audit files from run directory
|
38
|
+
### Remove 'audit' files from run directory
|
39
39
|
|
40
40
|
**Name:** audit,
|
41
41
|
**Type:** Boolean,
|
@@ -43,7 +43,7 @@ ReportingMeasure
|
|
43
43
|
**Required:** true,
|
44
44
|
**Model Dependent:** false
|
45
45
|
|
46
|
-
### Remove osm files from run directory
|
46
|
+
### Remove 'osm' files from run directory
|
47
47
|
|
48
48
|
**Name:** osm,
|
49
49
|
**Type:** Boolean,
|
@@ -51,7 +51,7 @@ ReportingMeasure
|
|
51
51
|
**Required:** true,
|
52
52
|
**Model Dependent:** false
|
53
53
|
|
54
|
-
### Remove idf files from run directory
|
54
|
+
### Remove 'idf' files from run directory
|
55
55
|
|
56
56
|
**Name:** idf,
|
57
57
|
**Type:** Boolean,
|
@@ -59,7 +59,7 @@ ReportingMeasure
|
|
59
59
|
**Required:** true,
|
60
60
|
**Model Dependent:** false
|
61
61
|
|
62
|
-
### Remove bnd files from run directory
|
62
|
+
### Remove 'bnd' files from run directory
|
63
63
|
|
64
64
|
**Name:** bnd,
|
65
65
|
**Type:** Boolean,
|
@@ -67,7 +67,7 @@ ReportingMeasure
|
|
67
67
|
**Required:** true,
|
68
68
|
**Model Dependent:** false
|
69
69
|
|
70
|
-
### Remove eio files from run directory
|
70
|
+
### Remove 'eio' files from run directory
|
71
71
|
|
72
72
|
**Name:** eio,
|
73
73
|
**Type:** Boolean,
|
@@ -75,7 +75,7 @@ ReportingMeasure
|
|
75
75
|
**Required:** true,
|
76
76
|
**Model Dependent:** false
|
77
77
|
|
78
|
-
### Remove shd files from run directory
|
78
|
+
### Remove 'shd' files from run directory
|
79
79
|
|
80
80
|
**Name:** shd,
|
81
81
|
**Type:** Boolean,
|
@@ -83,7 +83,7 @@ ReportingMeasure
|
|
83
83
|
**Required:** true,
|
84
84
|
**Model Dependent:** false
|
85
85
|
|
86
|
-
### Remove mdd files from run directory
|
86
|
+
### Remove 'mdd' files from run directory
|
87
87
|
|
88
88
|
**Name:** mdd,
|
89
89
|
**Type:** Boolean,
|
@@ -91,7 +91,7 @@ ReportingMeasure
|
|
91
91
|
**Required:** true,
|
92
92
|
**Model Dependent:** false
|
93
93
|
|
94
|
-
### Remove rdd files from run directory
|
94
|
+
### Remove 'rdd' files from run directory
|
95
95
|
|
96
96
|
**Name:** rdd,
|
97
97
|
**Type:** Boolean,
|
@@ -99,7 +99,7 @@ ReportingMeasure
|
|
99
99
|
**Required:** true,
|
100
100
|
**Model Dependent:** false
|
101
101
|
|
102
|
-
### Remove csv files from run directory
|
102
|
+
### Remove 'csv' files from run directory
|
103
103
|
|
104
104
|
**Name:** csv,
|
105
105
|
**Type:** Boolean,
|
@@ -107,7 +107,7 @@ ReportingMeasure
|
|
107
107
|
**Required:** true,
|
108
108
|
**Model Dependent:** false
|
109
109
|
|
110
|
-
### Remove Sizing Run Directories files from run directory
|
110
|
+
### Remove 'Sizing Run Directories' files from run directory
|
111
111
|
|
112
112
|
**Name:** Sizing Run Directories,
|
113
113
|
**Type:** Boolean,
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
# *******************************************************************************
|
3
2
|
# OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
|
4
3
|
# See also https://openstudio.net/license
|
@@ -12,8 +11,16 @@ class ServerDirectoryCleanup < OpenStudio::Measure::ReportingMeasure
|
|
12
11
|
'Server Directory Cleanup'
|
13
12
|
end
|
14
13
|
|
14
|
+
def description
|
15
|
+
'Clean up files in the run directory'
|
16
|
+
end
|
17
|
+
|
18
|
+
def modeler_description
|
19
|
+
'You can select which files to remove by the file types (eg: sql) as well as the sizing run directories'
|
20
|
+
end
|
21
|
+
|
15
22
|
# file types that can be removed
|
16
|
-
def file_types
|
23
|
+
def self.file_types
|
17
24
|
# key is arg name value is string for run method
|
18
25
|
file_types = {}
|
19
26
|
file_types['sql'] = '*.sql'
|
@@ -33,15 +40,15 @@ class ServerDirectoryCleanup < OpenStudio::Measure::ReportingMeasure
|
|
33
40
|
end
|
34
41
|
|
35
42
|
# define the arguments that the user will input
|
36
|
-
def arguments(
|
43
|
+
def arguments(_model = nil)
|
37
44
|
args = OpenStudio::Measure::OSArgumentVector.new
|
38
45
|
|
39
46
|
# loop through file types and make arguments
|
40
|
-
file_types.each do |
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
args <<
|
47
|
+
ServerDirectoryCleanup.file_types.each do |file_type, _|
|
48
|
+
arg = OpenStudio::Measure::OSArgument.makeBoolArgument(file_type, true)
|
49
|
+
arg.setDisplayName("Remove '#{file_type}' files from run directory")
|
50
|
+
arg.setDefaultValue(true)
|
51
|
+
args << arg
|
45
52
|
end
|
46
53
|
|
47
54
|
args
|
@@ -57,22 +64,19 @@ class ServerDirectoryCleanup < OpenStudio::Measure::ReportingMeasure
|
|
57
64
|
end
|
58
65
|
|
59
66
|
# assign the user inputs to variables
|
60
|
-
args = {}
|
61
|
-
file_types.each do |k, v|
|
62
|
-
args[k] = runner.getBoolArgumentValue(k, user_arguments)
|
63
|
-
end
|
64
|
-
|
67
|
+
args = ServerDirectoryCleanup.file_types.map { |k, _| [k, runner.getBoolArgumentValue(k, user_arguments)] }.to_h
|
65
68
|
initial_string = 'The following files were in the local run directory prior to the execution of this measure: '
|
66
69
|
Dir.entries('./../').each do |f|
|
67
70
|
initial_string << "#{f}, "
|
68
71
|
end
|
69
|
-
initial_string = initial_string[0..(initial_string.length - 3)]
|
72
|
+
initial_string = "#{initial_string[0..(initial_string.length - 3)]}."
|
70
73
|
runner.registerInitialCondition(initial_string)
|
71
74
|
|
72
75
|
# TODO: - code to remove sizing runs is not functional yet
|
73
76
|
# delete run directories
|
74
|
-
file_types.each do |k, v|
|
77
|
+
ServerDirectoryCleanup.file_types.each do |k, v|
|
75
78
|
next if !args[k]
|
79
|
+
|
76
80
|
if v == 'Sizing Run Directories'
|
77
81
|
|
78
82
|
Dir.glob('./../**/output').select { |e| File.directory? e }.each do |f|
|
@@ -99,12 +103,12 @@ class ServerDirectoryCleanup < OpenStudio::Measure::ReportingMeasure
|
|
99
103
|
Dir.entries('./..').each do |f|
|
100
104
|
final_string << "#{f}, "
|
101
105
|
end
|
102
|
-
final_string = final_string[0..(final_string.length - 3)]
|
106
|
+
final_string = "#{final_string[0..(final_string.length - 3)]}."
|
103
107
|
runner.registerFinalCondition(final_string)
|
104
108
|
|
105
109
|
true
|
106
|
-
end
|
107
|
-
end
|
110
|
+
end
|
111
|
+
end
|
108
112
|
|
109
113
|
# this allows the measure to be use by the application
|
110
114
|
ServerDirectoryCleanup.new.registerWithApplication
|
@@ -1,19 +1,19 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>server_directory_cleanup</name>
|
5
5
|
<uid>ec7d04ad-0b7b-495b-825a-e1b6d28d1d3f</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>b7ac12e3-448d-4bc8-8e61-f07b99ac5829</version_id>
|
7
|
+
<version_modified>2024-11-16T23:54:12Z</version_modified>
|
8
8
|
<xml_checksum>5BFE84C4</xml_checksum>
|
9
9
|
<class_name>ServerDirectoryCleanup</class_name>
|
10
10
|
<display_name>Server Directory Cleanup</display_name>
|
11
|
-
<description>
|
12
|
-
<modeler_description>
|
11
|
+
<description>Clean up files in the run directory</description>
|
12
|
+
<modeler_description>You can select which files to remove by the file types (eg: sql) as well as the sizing run directories</modeler_description>
|
13
13
|
<arguments>
|
14
14
|
<argument>
|
15
15
|
<name>sql</name>
|
16
|
-
<display_name>Remove sql files from run directory</display_name>
|
16
|
+
<display_name>Remove 'sql' files from run directory</display_name>
|
17
17
|
<type>Boolean</type>
|
18
18
|
<required>true</required>
|
19
19
|
<model_dependent>false</model_dependent>
|
@@ -31,7 +31,7 @@
|
|
31
31
|
</argument>
|
32
32
|
<argument>
|
33
33
|
<name>eso</name>
|
34
|
-
<display_name>Remove eso files from run directory</display_name>
|
34
|
+
<display_name>Remove 'eso' files from run directory</display_name>
|
35
35
|
<type>Boolean</type>
|
36
36
|
<required>true</required>
|
37
37
|
<model_dependent>false</model_dependent>
|
@@ -49,7 +49,7 @@
|
|
49
49
|
</argument>
|
50
50
|
<argument>
|
51
51
|
<name>audit</name>
|
52
|
-
<display_name>Remove audit files from run directory</display_name>
|
52
|
+
<display_name>Remove 'audit' files from run directory</display_name>
|
53
53
|
<type>Boolean</type>
|
54
54
|
<required>true</required>
|
55
55
|
<model_dependent>false</model_dependent>
|
@@ -67,7 +67,7 @@
|
|
67
67
|
</argument>
|
68
68
|
<argument>
|
69
69
|
<name>osm</name>
|
70
|
-
<display_name>Remove osm files from run directory</display_name>
|
70
|
+
<display_name>Remove 'osm' files from run directory</display_name>
|
71
71
|
<type>Boolean</type>
|
72
72
|
<required>true</required>
|
73
73
|
<model_dependent>false</model_dependent>
|
@@ -85,7 +85,7 @@
|
|
85
85
|
</argument>
|
86
86
|
<argument>
|
87
87
|
<name>idf</name>
|
88
|
-
<display_name>Remove idf files from run directory</display_name>
|
88
|
+
<display_name>Remove 'idf' files from run directory</display_name>
|
89
89
|
<type>Boolean</type>
|
90
90
|
<required>true</required>
|
91
91
|
<model_dependent>false</model_dependent>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
</argument>
|
104
104
|
<argument>
|
105
105
|
<name>bnd</name>
|
106
|
-
<display_name>Remove bnd files from run directory</display_name>
|
106
|
+
<display_name>Remove 'bnd' files from run directory</display_name>
|
107
107
|
<type>Boolean</type>
|
108
108
|
<required>true</required>
|
109
109
|
<model_dependent>false</model_dependent>
|
@@ -121,7 +121,7 @@
|
|
121
121
|
</argument>
|
122
122
|
<argument>
|
123
123
|
<name>eio</name>
|
124
|
-
<display_name>Remove eio files from run directory</display_name>
|
124
|
+
<display_name>Remove 'eio' files from run directory</display_name>
|
125
125
|
<type>Boolean</type>
|
126
126
|
<required>true</required>
|
127
127
|
<model_dependent>false</model_dependent>
|
@@ -139,7 +139,7 @@
|
|
139
139
|
</argument>
|
140
140
|
<argument>
|
141
141
|
<name>shd</name>
|
142
|
-
<display_name>Remove shd files from run directory</display_name>
|
142
|
+
<display_name>Remove 'shd' files from run directory</display_name>
|
143
143
|
<type>Boolean</type>
|
144
144
|
<required>true</required>
|
145
145
|
<model_dependent>false</model_dependent>
|
@@ -157,7 +157,7 @@
|
|
157
157
|
</argument>
|
158
158
|
<argument>
|
159
159
|
<name>mdd</name>
|
160
|
-
<display_name>Remove mdd files from run directory</display_name>
|
160
|
+
<display_name>Remove 'mdd' files from run directory</display_name>
|
161
161
|
<type>Boolean</type>
|
162
162
|
<required>true</required>
|
163
163
|
<model_dependent>false</model_dependent>
|
@@ -175,7 +175,7 @@
|
|
175
175
|
</argument>
|
176
176
|
<argument>
|
177
177
|
<name>rdd</name>
|
178
|
-
<display_name>Remove rdd files from run directory</display_name>
|
178
|
+
<display_name>Remove 'rdd' files from run directory</display_name>
|
179
179
|
<type>Boolean</type>
|
180
180
|
<required>true</required>
|
181
181
|
<model_dependent>false</model_dependent>
|
@@ -193,7 +193,7 @@
|
|
193
193
|
</argument>
|
194
194
|
<argument>
|
195
195
|
<name>csv</name>
|
196
|
-
<display_name>Remove csv files from run directory</display_name>
|
196
|
+
<display_name>Remove 'csv' files from run directory</display_name>
|
197
197
|
<type>Boolean</type>
|
198
198
|
<required>true</required>
|
199
199
|
<model_dependent>false</model_dependent>
|
@@ -211,7 +211,7 @@
|
|
211
211
|
</argument>
|
212
212
|
<argument>
|
213
213
|
<name>Sizing Run Directories</name>
|
214
|
-
<display_name>Remove Sizing Run Directories files from run directory</display_name>
|
214
|
+
<display_name>Remove 'Sizing Run Directories' files from run directory</display_name>
|
215
215
|
<type>Boolean</type>
|
216
216
|
<required>true</required>
|
217
217
|
<model_dependent>false</model_dependent>
|
@@ -247,16 +247,16 @@
|
|
247
247
|
</attributes>
|
248
248
|
<files>
|
249
249
|
<file>
|
250
|
-
<filename>
|
251
|
-
<filetype>
|
252
|
-
<usage_type>
|
253
|
-
<checksum>
|
250
|
+
<filename>LICENSE.md</filename>
|
251
|
+
<filetype>md</filetype>
|
252
|
+
<usage_type>license</usage_type>
|
253
|
+
<checksum>8696A072</checksum>
|
254
254
|
</file>
|
255
255
|
<file>
|
256
|
-
<filename>
|
257
|
-
<filetype>
|
258
|
-
<usage_type>
|
259
|
-
<checksum>
|
256
|
+
<filename>README.md</filename>
|
257
|
+
<filetype>md</filetype>
|
258
|
+
<usage_type>readme</usage_type>
|
259
|
+
<checksum>743071F5</checksum>
|
260
260
|
</file>
|
261
261
|
<file>
|
262
262
|
<filename>README.md.erb</filename>
|
@@ -264,24 +264,6 @@
|
|
264
264
|
<usage_type>readmeerb</usage_type>
|
265
265
|
<checksum>703C9964</checksum>
|
266
266
|
</file>
|
267
|
-
<file>
|
268
|
-
<filename>README.md</filename>
|
269
|
-
<filetype>md</filetype>
|
270
|
-
<usage_type>readme</usage_type>
|
271
|
-
<checksum>4910D396</checksum>
|
272
|
-
</file>
|
273
|
-
<file>
|
274
|
-
<filename>LICENSE.md</filename>
|
275
|
-
<filetype>md</filetype>
|
276
|
-
<usage_type>license</usage_type>
|
277
|
-
<checksum>64FFEBDE</checksum>
|
278
|
-
</file>
|
279
|
-
<file>
|
280
|
-
<filename>ServerDirectoryCleanup_test.rb</filename>
|
281
|
-
<filetype>rb</filetype>
|
282
|
-
<usage_type>test</usage_type>
|
283
|
-
<checksum>687ADAF4</checksum>
|
284
|
-
</file>
|
285
267
|
<file>
|
286
268
|
<version>
|
287
269
|
<software_program>OpenStudio</software_program>
|
@@ -291,7 +273,25 @@
|
|
291
273
|
<filename>measure.rb</filename>
|
292
274
|
<filetype>rb</filetype>
|
293
275
|
<usage_type>script</usage_type>
|
294
|
-
<checksum>
|
276
|
+
<checksum>BBAA09F4</checksum>
|
277
|
+
</file>
|
278
|
+
<file>
|
279
|
+
<filename>USA_CO_Golden-NREL.724666_TMY3.epw</filename>
|
280
|
+
<filetype>epw</filetype>
|
281
|
+
<usage_type>test</usage_type>
|
282
|
+
<checksum>BDF687C1</checksum>
|
283
|
+
</file>
|
284
|
+
<file>
|
285
|
+
<filename>example_model.osm</filename>
|
286
|
+
<filetype>osm</filetype>
|
287
|
+
<usage_type>test</usage_type>
|
288
|
+
<checksum>39B6E26C</checksum>
|
289
|
+
</file>
|
290
|
+
<file>
|
291
|
+
<filename>server_directory_cleanup_test.rb</filename>
|
292
|
+
<filetype>rb</filetype>
|
293
|
+
<usage_type>test</usage_type>
|
294
|
+
<checksum>AA55141E</checksum>
|
295
295
|
</file>
|
296
296
|
</files>
|
297
297
|
</measure>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
OpenStudio(R), Copyright (c) 2008,
|
1
|
+
OpenStudio(R), Copyright (c) 2008, 2024 Alliance for Sustainable Energy, LLC.
|
2
2
|
|
3
3
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
4
4
|
|
@@ -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>set_co_pfor_single_speed_dx_cooling_units</name>
|
5
5
|
<uid>a4a7297e-8314-4df7-86b5-bec18cdd0a3a</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>d38c238c-5423-4378-9736-c655b16827c3</version_id>
|
7
|
+
<version_modified>2024-11-16T23:54:17Z</version_modified>
|
8
8
|
<xml_checksum>9E2537CD</xml_checksum>
|
9
9
|
<class_name>SetCOPforSingleSpeedDXCoolingUnits</class_name>
|
10
10
|
<display_name>Set COP for Single Speed DX Cooling Units</display_name>
|
@@ -17,10 +17,10 @@
|
|
17
17
|
<type>Choice</type>
|
18
18
|
<required>true</required>
|
19
19
|
<model_dependent>false</model_dependent>
|
20
|
-
<default_value>{
|
20
|
+
<default_value>{37b886b6-96ce-4c96-931d-092eadc8869e}</default_value>
|
21
21
|
<choices>
|
22
22
|
<choice>
|
23
|
-
<value>{
|
23
|
+
<value>{37b886b6-96ce-4c96-931d-092eadc8869e}</value>
|
24
24
|
<display_name>*All Air Loops*</display_name>
|
25
25
|
</choice>
|
26
26
|
</choices>
|
@@ -137,16 +137,10 @@
|
|
137
137
|
</attributes>
|
138
138
|
<files>
|
139
139
|
<file>
|
140
|
-
<filename>
|
141
|
-
<filetype>
|
142
|
-
<usage_type>
|
143
|
-
<checksum>
|
144
|
-
</file>
|
145
|
-
<file>
|
146
|
-
<filename>README.md.erb</filename>
|
147
|
-
<filetype>erb</filetype>
|
148
|
-
<usage_type>readmeerb</usage_type>
|
149
|
-
<checksum>703C9964</checksum>
|
140
|
+
<filename>LICENSE.md</filename>
|
141
|
+
<filetype>md</filetype>
|
142
|
+
<usage_type>license</usage_type>
|
143
|
+
<checksum>8696A072</checksum>
|
150
144
|
</file>
|
151
145
|
<file>
|
152
146
|
<filename>README.md</filename>
|
@@ -154,6 +148,12 @@
|
|
154
148
|
<usage_type>readme</usage_type>
|
155
149
|
<checksum>61EB7DEE</checksum>
|
156
150
|
</file>
|
151
|
+
<file>
|
152
|
+
<filename>README.md.erb</filename>
|
153
|
+
<filetype>erb</filetype>
|
154
|
+
<usage_type>readmeerb</usage_type>
|
155
|
+
<checksum>703C9964</checksum>
|
156
|
+
</file>
|
157
157
|
<file>
|
158
158
|
<version>
|
159
159
|
<software_program>OpenStudio</software_program>
|
@@ -163,19 +163,19 @@
|
|
163
163
|
<filename>measure.rb</filename>
|
164
164
|
<filetype>rb</filetype>
|
165
165
|
<usage_type>script</usage_type>
|
166
|
-
<checksum>
|
166
|
+
<checksum>BE5CE2B0</checksum>
|
167
167
|
</file>
|
168
168
|
<file>
|
169
|
-
<filename>
|
170
|
-
<filetype>
|
169
|
+
<filename>0320_ModelWithHVAC_01.osm</filename>
|
170
|
+
<filetype>osm</filetype>
|
171
171
|
<usage_type>test</usage_type>
|
172
|
-
<checksum>
|
172
|
+
<checksum>049F3417</checksum>
|
173
173
|
</file>
|
174
174
|
<file>
|
175
|
-
<filename>
|
176
|
-
<filetype>
|
177
|
-
<usage_type>
|
178
|
-
<checksum>
|
175
|
+
<filename>SetCOPforSingleSpeedDXCoolingUnits_Test.rb</filename>
|
176
|
+
<filetype>rb</filetype>
|
177
|
+
<usage_type>test</usage_type>
|
178
|
+
<checksum>F0149C98</checksum>
|
179
179
|
</file>
|
180
180
|
</files>
|
181
181
|
</measure>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
OpenStudio(R), Copyright (c) 2008,
|
1
|
+
OpenStudio(R), Copyright (c) 2008, 2024 Alliance for Sustainable Energy, LLC.
|
2
2
|
|
3
3
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
4
4
|
|
@@ -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>set_co_pfor_two_speed_dx_cooling_units</name>
|
5
5
|
<uid>f5a8d60a-e60f-4097-99c3-28bfda3f29a3</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>dac7b077-cec1-48db-91fc-c0160d474863</version_id>
|
7
|
+
<version_modified>2024-11-16T23:54:10Z</version_modified>
|
8
8
|
<xml_checksum>9E2537CD</xml_checksum>
|
9
9
|
<class_name>SetCOPforTwoSpeedDXCoolingUnits</class_name>
|
10
10
|
<display_name>Set COP for Two Speed DX Cooling Units</display_name>
|
@@ -17,10 +17,10 @@
|
|
17
17
|
<type>Choice</type>
|
18
18
|
<required>true</required>
|
19
19
|
<model_dependent>false</model_dependent>
|
20
|
-
<default_value>{
|
20
|
+
<default_value>{b7ef4e70-f3b3-422c-a026-f81c42069a40}</default_value>
|
21
21
|
<choices>
|
22
22
|
<choice>
|
23
|
-
<value>{
|
23
|
+
<value>{b7ef4e70-f3b3-422c-a026-f81c42069a40}</value>
|
24
24
|
<display_name>*All Air Loops*</display_name>
|
25
25
|
</choice>
|
26
26
|
</choices>
|
@@ -145,16 +145,10 @@
|
|
145
145
|
</attributes>
|
146
146
|
<files>
|
147
147
|
<file>
|
148
|
-
<filename>
|
149
|
-
<filetype>
|
150
|
-
<usage_type>
|
151
|
-
<checksum>
|
152
|
-
</file>
|
153
|
-
<file>
|
154
|
-
<filename>README.md.erb</filename>
|
155
|
-
<filetype>erb</filetype>
|
156
|
-
<usage_type>readmeerb</usage_type>
|
157
|
-
<checksum>703C9964</checksum>
|
148
|
+
<filename>LICENSE.md</filename>
|
149
|
+
<filetype>md</filetype>
|
150
|
+
<usage_type>license</usage_type>
|
151
|
+
<checksum>8696A072</checksum>
|
158
152
|
</file>
|
159
153
|
<file>
|
160
154
|
<filename>README.md</filename>
|
@@ -162,6 +156,12 @@
|
|
162
156
|
<usage_type>readme</usage_type>
|
163
157
|
<checksum>185458E4</checksum>
|
164
158
|
</file>
|
159
|
+
<file>
|
160
|
+
<filename>README.md.erb</filename>
|
161
|
+
<filetype>erb</filetype>
|
162
|
+
<usage_type>readmeerb</usage_type>
|
163
|
+
<checksum>703C9964</checksum>
|
164
|
+
</file>
|
165
165
|
<file>
|
166
166
|
<version>
|
167
167
|
<software_program>OpenStudio</software_program>
|
@@ -171,19 +171,19 @@
|
|
171
171
|
<filename>measure.rb</filename>
|
172
172
|
<filetype>rb</filetype>
|
173
173
|
<usage_type>script</usage_type>
|
174
|
-
<checksum>
|
174
|
+
<checksum>0B24B1FF</checksum>
|
175
175
|
</file>
|
176
176
|
<file>
|
177
|
-
<filename>
|
178
|
-
<filetype>
|
177
|
+
<filename>0320_ModelWithHVAC_01.osm</filename>
|
178
|
+
<filetype>osm</filetype>
|
179
179
|
<usage_type>test</usage_type>
|
180
|
-
<checksum>
|
180
|
+
<checksum>049F3417</checksum>
|
181
181
|
</file>
|
182
182
|
<file>
|
183
|
-
<filename>
|
184
|
-
<filetype>
|
185
|
-
<usage_type>
|
186
|
-
<checksum>
|
183
|
+
<filename>SetCOPforTwoSpeedDXCoolingUnits_Test.rb</filename>
|
184
|
+
<filetype>rb</filetype>
|
185
|
+
<usage_type>test</usage_type>
|
186
|
+
<checksum>6642FD63</checksum>
|
187
187
|
</file>
|
188
188
|
</files>
|
189
189
|
</measure>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
OpenStudio(R), Copyright (c) 2008,
|
1
|
+
OpenStudio(R), Copyright (c) 2008, 2024 Alliance for Sustainable Energy, LLC.
|
2
2
|
|
3
3
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
4
4
|
|