Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lighting fraction improvements #165

Merged
merged 4 commits into from
Jul 26, 2019
Merged

Lighting fraction improvements #165

merged 4 commits into from
Jul 26, 2019

Conversation

shorowit
Copy link
Contributor

@shorowit shorowit commented Feb 7, 2019

The goal of this change is to allow specifying, e.g.,:

  • Interior lighting is 50% LED, 25% CFL, 25% Incandescent
  • Exterior lighting is 100% CFL
  • Garage lighting is 100% LED

The changes are as follows:

  • Adds FractionofUnitsInLocation element to LightingGroup. Description: "The fraction of lighting units in the specified Location, where all the fractions for the Location sum to 1. If a Location is not specified, fractions apply to the entire building."
  • Adds "garage" as a Location enumeration choice.
  • Allows the same enumeration choices for both LightingGroup/ThirdPartyCertifications and LightingFixture/ThirdPartyCertifications. Adds "ERI Tier I" and "ERI Tier II" as enumerations choices.
  • Removes LightingFractions (superseded by this proposal).

Example:

      <Lighting>
        <LightingGroup>
          <SystemIdentifier id='Lighting_Interior_LED'/>
          <Location>interior</Location>
          <FractionofUnitsInLocation>0.5</FractionofUnitsInLocation>
          <LightingType>
            </LightEmittingDiode>
          </LightingType>
        </LightingGroup>
        <LightingGroup>
          <SystemIdentifier id='Lighting_Interior_CFL'/>
          <Location>interior</Location>
          <FractionofUnitsInLocation>0.25</FractionofUnitsInLocation>
          <LightingType>
            </CompactFluorescent>
          </LightingType>
        </LightingGroup>
        <LightingGroup>
          <SystemIdentifier id='Lighting_Interior_Incandescent'/>
          <Location>interior</Location>
          <FractionofUnitsInLocation>0.25</FractionofUnitsInLocation>
          <LightingType>
            </Incandescent>
          </LightingType>
        </LightingGroup>
        <LightingGroup>
          <SystemIdentifier id='Lighting_Exterior_CFL'/>
          <Location>exterior</Location>
          <FractionofUnitsInLocation>1.0</FractionofUnitsInLocation>
          <LightingType>
            </CompactFluorescent>
          </LightingType>
        </LightingGroup>
        <LightingGroup>
          <SystemIdentifier id='Lighting_Garage_LED'/>
          <Location>garage</Location>
          <FractionofUnitsInLocation>1.0</FractionofUnitsInLocation>
          <LightingType>
            </LightEmittingDiode>
          </LightingType>
        </LightingGroup>
      </Lighting>

…ons can now be defined, each with a lighting type, location, and fraction value.
@GamalielL
Copy link

The intended use of the new inputs is not as clear as the old inputs. For instance, you could reasonably interpret that the intent is to sum fractions to one within each location. I assume that the intent is to sum fractions to one across the entire building. In that case it seems it would be easier to use counts than to figure out fractions for each type and location combination.

@shorowit
Copy link
Contributor Author

shorowit commented Feb 8, 2019

@GamalielL Thanks for looking this over and great point about the ambiguity of the fractions. In hindsight, you're right that it is confusing. The problem with requiring counts rather than fractions is that some software tools only collect fractions as inputs and I'd prefer not to force them to make assumptions during HPXML export (or force them to change their interface).

I also just realized that my proposed changes here are really no different than simply adding the fraction field to the LightingGroup element.

So now I'm thinking that I should revert my changes and simply add a FractionInLocation field to the LightingGroup element with a description that makes it clear that the fractions should sum to 1 for a given location. If the Location field is not specified, then presumably the fractions apply for the whole building. This would be a non-breaking change then. Ideally, we'd also mark the LightingFractions element as deprecated for v4, since it's superseded by this more flexible approach.

@GamalielL
Copy link

GamalielL commented Feb 8, 2019 via email

…Marks LightingFractions as deprecated. Adds ERI Tier I and ERI Tier II as certification enumerations. Replaces use of LightingThirdPartyCertification with LightingFixtureThirdPartyCertification, which has all the former enumeration choices plus more.
@shorowit shorowit changed the title Revamping LightingFractions Lighting fraction improvements Feb 8, 2019
@shorowit
Copy link
Contributor Author

shorowit commented Feb 8, 2019

OK, I am much happier with this now. It's fewer changes and is no longer a breaking change. I updated the PR title/description to reflect the current state.

@lirainer
Copy link

lirainer commented Jul 2, 2019

@shorowit One small typo in the example: I think you should use <Location>garage</Location> for the last group.

@shorowit
Copy link
Contributor Author

shorowit commented Jul 2, 2019

@lirainer Oops. Yes, that's definitely a typo. I'll fix it, thanks.

@shorowit
Copy link
Contributor Author

shorowit commented Jul 2, 2019

Should we remove LightingFractions instead of just marking it as deprecated for a future version?

@nmerket nmerket merged commit 0d5408c into master Jul 26, 2019
@nmerket nmerket deleted the lighting_fractions branch July 26, 2019 16:41
@nmerket nmerket added this to the v3.0 milestone Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants