Skip to content

Commit

Permalink
Update docs and epvalidator.
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-robertson committed Sep 19, 2023
1 parent 816536f commit 693c7aa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions HPXMLtoOpenStudio/measure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<schema_version>3.1</schema_version>
<name>hpxm_lto_openstudio</name>
<uid>b1543b30-9465-45ff-ba04-1d1f85e763bc</uid>
<version_id>6cae2568-e60f-49d1-a7e2-dffbfaaf6940</version_id>
<version_modified>2023-09-19T17:43:52Z</version_modified>
<version_id>4c939d78-3112-46af-8597-738ddb0f3ff6</version_id>
<version_modified>2023-09-19T23:54:39Z</version_modified>
<xml_checksum>D8922A73</xml_checksum>
<class_name>HPXMLtoOpenStudio</class_name>
<display_name>HPXML to OpenStudio Translator</display_name>
Expand Down Expand Up @@ -262,7 +262,7 @@
<filename>hpxml_schematron/EPvalidator.xml</filename>
<filetype>xml</filetype>
<usage_type>resource</usage_type>
<checksum>E92D5A83</checksum>
<checksum>3DC6EB1D</checksum>
</file>
<file>
<filename>hpxml_schematron/iso-schematron.xsd</filename>
Expand Down
10 changes: 9 additions & 1 deletion HPXMLtoOpenStudio/resources/hpxml_schematron/EPvalidator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
<sch:assert role='ERROR' test='count(h:BuildingSummary/h:Site) &lt;= 1'>Expected 0 or 1 element(s) for xpath: BuildingSummary/Site</sch:assert> <!-- See [Site] -->
<sch:assert role='ERROR' test='count(h:BuildingSummary/h:BuildingOccupancy) &lt;= 1'>Expected 0 or 1 element(s) for xpath: BuildingSummary/BuildingOccupancy</sch:assert> <!-- See [BuildingOccupancy]-->
<sch:assert role='ERROR' test='count(h:BuildingSummary/h:BuildingConstruction) = 1'>Expected 1 element(s) for xpath: BuildingSummary/BuildingConstruction</sch:assert> <!-- See [BuildingConstruction] -->
<sch:assert role='ERROR' test='count(h:BuildingSummary/h:extension/h:SchedulesFilePath) &lt;= 1'>Expected 0 or 1 element(s) for xpath: BuildingSummary/extension/SchedulesFilePath</sch:assert> <!-- See [SchedulesFilePath] -->
<sch:assert role='ERROR' test='count(h:ClimateandRiskZones/h:ClimateZoneIECC) &lt;= 1'>Expected 0 or 1 element(s) for xpath: ClimateandRiskZones/ClimateZoneIECC</sch:assert> <!-- See [ClimateZoneIECC] -->
<sch:assert role='ERROR' test='count(h:ClimateandRiskZones/h:WeatherStation) = 1'>Expected 1 element(s) for xpath: ClimateandRiskZones/WeatherStation</sch:assert> <!-- See [WeatherStation] -->
<sch:assert role='ERROR' test='count(h:Enclosure/h:AirInfiltration/h:extension/h:HasFlueOrChimneyInConditionedSpace) &lt;= 1'>Expected 0 or 1 element(s) for xpath: Enclosure/AirInfiltration/extension/HasFlueOrChimneyInConditionedSpace</sch:assert>
Expand Down Expand Up @@ -349,7 +350,14 @@
<sch:report role='WARN' test='number(h:NumberofUnits) &gt; 1'>NumberofUnits is greater than 1, indicating that the HPXML Building represents multiple dwelling units; simulation outputs will reflect this unit multiplier.</sch:report>
</sch:rule>
</sch:pattern>


<sch:pattern>
<sch:title>[SchedulesFilePath]</sch:title>
<sch:rule context='/h:HPXML/h:Building/h:BuildingDetails/h:BuildingSummary/h:extension'>
<sch:assert role='ERROR' test='count(h:SchedulesFilePath) = 1'>Expected 1 element(s) for xpath: SchedulesFilePath</sch:assert>
</sch:rule>
</sch:pattern>

<sch:pattern>
<sch:title>[BuildingType=SFAorMF]</sch:title>
<sch:rule context='/h:HPXML/h:Building/h:BuildingDetails/h:BuildingSummary/h:BuildingConstruction/h:ResidentialFacilityType[text()="single-family attached" or text()="apartment unit"]'>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/workflow_inputs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Detailed Schedule Inputs
Detailed schedule inputs allow schedule values for every hour or timestep of the simulation.
They can be used to reflect real-world or stochastic occupancy.

Detailed schedule inputs are provided via one or more CSV file that should be referenced in the HPXML file as ``/HPXML/SoftwareInfo/extension/SchedulesFilePath`` elements.
Detailed schedule inputs are provided via one or more CSV file that should be referenced in the HPXML file as either ``/HPXML/SoftwareInfo/extension/SchedulesFilePath`` or ``/HPXML/Building/BuildingDetails/BuildingSummary/extension/SchedulesFilePath`` elements.
The column names available in the schedule CSV files are:

=============================== ===== ================================================================================= ===============================
Expand Down

0 comments on commit 693c7aa

Please sign in to comment.