urbanopt-geojson 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,7 +43,7 @@ Select which surrounding buildings to include.
43
43
  **Required:** true,
44
44
  **Model Dependent:** false
45
45
 
46
- ### Scale Footprint Area by the Floor Area?
46
+ ### Scale Footprint Area by the Floor Area
47
47
  If true, the footprint area from GeoJSON will be scaled by the floor_area provided by the user in URBANopt.
48
48
  **Name:** scale_footprint_area_by_floor_area,
49
49
  **Type:** Boolean,
@@ -51,8 +51,8 @@ class UrbanGeometryCreation < OpenStudio::Measure::ModelMeasure
51
51
  surrounding_buildings.setDefaultValue('ShadingOnly')
52
52
  args << surrounding_buildings
53
53
  # not a required argument
54
- scale_footprint_area_by_floor_area = OpenStudio::Ruleset::OSArgument.makeBoolArgument('scale_footprint_area_by_floor_area', false)
55
- scale_footprint_area_by_floor_area.setDisplayName('Scale Footprint Area by the Floor Area?')
54
+ scale_footprint_area_by_floor_area = OpenStudio::Measure::OSArgument.makeBoolArgument('scale_footprint_area_by_floor_area', false)
55
+ scale_footprint_area_by_floor_area.setDisplayName('Scale Footprint Area by the Floor Area')
56
56
  scale_footprint_area_by_floor_area.setDescription('If true, the footprint area from GeoJSON will be scaled by the floor_area provided by the user in URBANopt.')
57
57
  scale_footprint_area_by_floor_area.setDefaultValue(false)
58
58
  args << scale_footprint_area_by_floor_area
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.1</schema_version>
4
4
  <name>urban_geometry_creation</name>
5
5
  <uid>5ab85d6b-c9af-4361-8ab9-613ee99a5666</uid>
6
- <version_id>7f03040a-cc98-4c54-ae40-f33db7f534b7</version_id>
7
- <version_modified>2023-07-06T15:57:24Z</version_modified>
6
+ <version_id>583499fb-4275-4787-9168-e3383dca0fc6</version_id>
7
+ <version_modified>2023-11-20T17:10:01Z</version_modified>
8
8
  <xml_checksum>D254E772</xml_checksum>
9
9
  <class_name>UrbanGeometryCreation</class_name>
10
10
  <display_name>UrbanGeometryCreation</display_name>
@@ -48,7 +48,7 @@
48
48
  </argument>
49
49
  <argument>
50
50
  <name>scale_footprint_area_by_floor_area</name>
51
- <display_name>Scale Footprint Area by the Floor Area?</display_name>
51
+ <display_name>Scale Footprint Area by the Floor Area</display_name>
52
52
  <description>If true, the footprint area from GeoJSON will be scaled by the floor_area provided by the user in URBANopt.</description>
53
53
  <type>Boolean</type>
54
54
  <required>false</required>
@@ -114,7 +114,7 @@
114
114
  <filename>README.md</filename>
115
115
  <filetype>md</filetype>
116
116
  <usage_type>readme</usage_type>
117
- <checksum>74F54DC5</checksum>
117
+ <checksum>AA2D38B0</checksum>
118
118
  </file>
119
119
  <file>
120
120
  <filename>README.md.erb</filename>
@@ -131,7 +131,7 @@
131
131
  <filename>measure.rb</filename>
132
132
  <filetype>rb</filetype>
133
133
  <usage_type>script</usage_type>
134
- <checksum>4B36EB4E</checksum>
134
+ <checksum>5D490083</checksum>
135
135
  </file>
136
136
  <file>
137
137
  <filename>nrel_stm_footprints.geojson</filename>
@@ -143,13 +143,13 @@
143
143
  <filename>shadowed_tests.rb</filename>
144
144
  <filetype>rb</filetype>
145
145
  <usage_type>test</usage_type>
146
- <checksum>1AD96F0B</checksum>
146
+ <checksum>6F2F2CA8</checksum>
147
147
  </file>
148
148
  <file>
149
149
  <filename>urban_geometry_creation_test.rb</filename>
150
150
  <filetype>rb</filetype>
151
151
  <usage_type>test</usage_type>
152
- <checksum>CA11D7FF</checksum>
152
+ <checksum>81FF63D2</checksum>
153
153
  </file>
154
154
  </files>
155
155
  </measure>
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.1</schema_version>
4
4
  <name>urban_geometry_creation_zoning</name>
5
5
  <uid>96ea1317-76ac-4670-b51d-71ee3f4fdd65</uid>
6
- <version_id>c1c0bf6d-92a2-4a69-9446-e3ebf392c376</version_id>
7
- <version_modified>2023-07-06T15:57:24Z</version_modified>
6
+ <version_id>4d47bb3f-6e49-4309-a4e0-5f2c3748b947</version_id>
7
+ <version_modified>2023-11-20T17:10:01Z</version_modified>
8
8
  <xml_checksum>D254E772</xml_checksum>
9
9
  <class_name>UrbanGeometryCreationZoning</class_name>
10
10
  <display_name>UrbanGeometryCreationZoning</display_name>
@@ -136,7 +136,7 @@
136
136
  <filename>urban_geometry_creation_zoning_test.rb</filename>
137
137
  <filetype>rb</filetype>
138
138
  <usage_type>test</usage_type>
139
- <checksum>5C631B7A</checksum>
139
+ <checksum>FC65E7CE</checksum>
140
140
  </file>
141
141
  </files>
142
142
  </measure>
@@ -84,7 +84,8 @@ module URBANopt
84
84
  raise('No name found for Building Feature')
85
85
  end
86
86
  if feature[:properties][:number_of_stories].nil?
87
- @@logger.warn("Number of stories is required to calculate shading using the UrbanGeometryCreation measure...ignoring #{feature[:properties][:id]} in shading calculations")
87
+ @@logger.warn("Number of stories is required to calculate shading using the UrbanGeometryCreation measure.\n" \
88
+ "Not validating #{feature[:properties][:id]} against schema and ignoring in shading calculations")
88
89
  end
89
90
  feature[:additionalProperties] = true
90
91
  # In case hpxml_directory present check for fewer properties
@@ -95,6 +96,8 @@ module URBANopt
95
96
  if feature[:properties][:name].nil?
96
97
  raise('No name found for Building Feature')
97
98
  end
99
+ @@logger.warn("OS-HPXML files may not conform to schema, which is usually ok.\n" \
100
+ "Not validating #{feature[:properties][:id]} against schema")
98
101
  # Else validate for all required properties in the schema
99
102
  else
100
103
  errors = validate(@@building_schema, properties)
@@ -59,7 +59,7 @@
59
59
  "$ref": "#/definitions/TemperatureType"
60
60
  },
61
61
  "flow_direction": {
62
- "description": "Charcterization of connector, relative to the central plant",
62
+ "description": "Characterization of connector, relative to the central plant",
63
63
  "$ref": "#/definitions/FlowDirection"
64
64
  },
65
65
  "user_data": {
@@ -67,12 +67,10 @@
67
67
  }
68
68
  },
69
69
  "required": [
70
+ "id",
70
71
  "type",
71
- "connector_type",
72
72
  "startJunctionId",
73
- "endJunctionId",
74
- "fluid_temperature_type",
75
- "flow_direction"
73
+ "endJunctionId"
76
74
  ],
77
75
  "additionalProperties": false,
78
76
  "definitions": {
@@ -60,9 +60,8 @@
60
60
  }
61
61
  },
62
62
  "required": [
63
- "type",
64
- "junction_type",
65
- "connection_type"
63
+ "id",
64
+ "type"
66
65
  ],
67
66
  "additionalProperties": false,
68
67
  "definitions": {
@@ -5,6 +5,6 @@
5
5
 
6
6
  module URBANopt
7
7
  module GeoJSON
8
- VERSION = '0.10.0'.freeze
8
+ VERSION = '0.11.0'.freeze
9
9
  end
10
10
  end