Skip to content

Add carrier validation and color assignment after network loading - #9

Merged
FabianHofmann merged 1 commit into
mainfrom
gently-color-handling
Nov 26, 2025
Merged

Add carrier validation and color assignment after network loading#9
FabianHofmann merged 1 commit into
mainfrom
gently-color-handling

Conversation

@FabianHofmann

Copy link
Copy Markdown
Collaborator

Summary

  • Add get_unique_carriers() to collect all carriers used across network components
  • Add generate_colors() to create hex colors from matplotlib palettes
  • Add ensure_carriers_defined() to add missing carriers to n.carriers and assign colors
  • Call carrier validation after loading networks from files and UI uploads

Test plan

  • All existing tests pass (105 passed)
  • Linter checks pass
  • Manual testing with networks that have undefined carriers

🤖 Generated with Claude Code

- Add get_unique_carriers() to collect carriers from all components
- Add generate_colors() to create hex colors from matplotlib palettes
- Add ensure_carriers_defined() to add missing carriers and assign colors
- Call ensure_carriers_defined() after loading networks from files and UI
@FabianHofmann
FabianHofmann merged commit e79e6f6 into main Nov 26, 2025
9 checks passed
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.

1 participant