Skip to content

Remove _to_observation and _to_model from Comparer#567

Open
ecomodeller wants to merge 1 commit intomainfrom
remove-to-observation-methods
Open

Remove _to_observation and _to_model from Comparer#567
ecomodeller wants to merge 1 commit intomainfrom
remove-to-observation-methods

Conversation

@ecomodeller
Copy link
Member

@ecomodeller ecomodeller commented Jan 30, 2026

Summary

  • Remove _to_observation() and _to_model() methods from Comparer
  • spatial_overview and temporal_coverage now work directly with Comparers via duck typing
  • Uses gtype property instead of isinstance() checks, making it easier to add new observation types

Follow-up to #565 which removed value-based coloring to enable this refactor.

These methods existed only to support spatial_overview and temporal_coverage
plotting. Now these functions work directly with Comparers via duck typing
(using gtype, x, y, name, time properties), making it easier to add new
observation types without modifying Comparer.
@ecomodeller ecomodeller mentioned this pull request Feb 24, 2026
@jpalm3r jpalm3r self-requested a review February 25, 2026 07:24
Copy link
Collaborator

@jpalm3r jpalm3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good to me: plotting gets cleaner and easier to interpret.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants