Skip to content

GenX: unify the two divergent resource classifiers #60

Description

@qian-harvard

The GenX connector carries two independent classifiers over the same GenX resource names, and they disagree.

They differ on real inputs, not just spelling:

Resource name contains classify_resource classify
petroleum / oil natural_gas Other
distributed_generation ignore (dropped) Solar
combined_cycle / combustion_turbine unclassified Natural Gas
_dr (demand response) unclassified DR

Two consequences:

  1. The same case plotted by plot_capacity and by plot_diurnal_generation attributes MW to different technologies.
  2. Because the key spaces differ, plot_capacity.py:26 has to re-key the shared palette through a resource_labels translation table just to reach RESOURCE_COLORS. Any future resource-naming fix has to land in two places.

Deliberately left alone when #51 was integrated in #59: unifying them changes plot output, and which classification is the intended one is a domain call rather than a mechanical one. Worth a single classify() in palette.py (or a new resources.py) returning one key space, with both plotters consuming it.

cc @lauraahwa — you'd know which mapping is the intended one, particularly for petroleum and distributed generation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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