Skip to content

Wrong EconomizerType entry name in Basilisk.Core.EnconomizerType #32

@samuelduchesne

Description

@samuelduchesne

Let's say one would modify manually an UmiTemplate JSON and set the EconomizerType to "DifferentialEnthalpy", the Template Editor will fail to open the template library without much debugging info.

Running Basilisk in Debug mode allowed me to inspect the Exception thrown by NewtownSoft.Json:

"Error converting value \"DifferentialEnthalpy\" to type 'Basilisk.Core.EconomizerType'. Path 'ZoneConditionings[0].EconomizerType', line 2197, position 46."

Then, looking at Basilisk.Core.EconomizerType, we can see that the culprit is an "h" in "DifferentialEnthalphy".

namespace Basilisk.Core
{
    public enum EconomizerType
    {
        NoEconomizer,
        DifferentialDryBulb,
        DifferentialEnthalphy
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions