Skip to content

Conversation

@JulStraus
Copy link
Collaborator

In the current version, strategic_periods(scen::StrategicScenario) creates a type StratTreeNodes. This is generally not wrong, but limits the reusability of functions as certain functionality is not defined for StratTreeNodes, among others last.

This is adjusted in this PR.

Important

Do we see it as breaking? The type is changed, but the iterator still behaves exactly the same. This implies it may be breaking if people use the type for dispatch.

* The new type allows for the functionality `last`
* No other impact of the new type
@JulStraus JulStraus requested a review from trulsf December 16, 2025 14:40
@JulStraus JulStraus added the enhancement New feature or request label Dec 16, 2025
Copy link
Member

@trulsf trulsf left a comment

Choose a reason for hiding this comment

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

Looks good to me. I would not see this as a breaking change. The behavior of the exported functions are not changed. I see the exact type returned as an internal type.

@JulStraus JulStraus merged commit e1d44b1 into main Jan 5, 2026
6 checks passed
@JulStraus JulStraus deleted the js/scen_tree_nodes branch January 5, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants