Skip to content

Debugging SWHC004-Commercial #1

@simularis

Description

@simularis

We're debugging branch SWHC004-Commercial

Regarding the error message seen on the command line:

SyntaxError: C:/DEER-Prototypes-EnergyPlus/templates/energyplus/system/hw.pxt:1004: syntax error, unexpected end-of-input, expecting keyword_end @local_output ...

Here are potentially problematic lines:

<% if (heating_source == "BOILER") %>
<% if (boiler_duplicate) %>
Boiler:HotWater,
<%= name %> Heating Source 1, !- Name

<% else %>
Boiler:HotWater,
<%= name %> Heating Source, !- Name

<% if (heating_source == "STEAMBOILER") %>
<% if (boiler_duplicate) %>
Boiler:Steam,
<%= name %> Heating Source 1, !- Name

<% elsif (heating_source == "DISTRICT") %>
DistrictHeating,

  1. We need the if-clause for heating_source (at line 490) to be an else-if.
  2. We need the if-clause for boiler-duplicate (at line 491) to be corrected (either create an else clause, or remove the if statement).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions