Skip to content

level_demand can now be without max_level or min_level#1629

Merged
Jingru923 merged 6 commits intomainfrom
level-min-max
Jul 22, 2024
Merged

level_demand can now be without max_level or min_level#1629
Jingru923 merged 6 commits intomainfrom
level-min-max

Conversation

@Jingru923
Copy link
Contributor

Fixes #1589

@Jingru923 Jingru923 requested a review from SouthEndMusic July 17, 2024 07:51
@Jingru923 Jingru923 linked an issue Jul 17, 2024 that may be closed by this pull request
@Jingru923 Jingru923 changed the title add if statement to set storage from nan to inf level_demand can now be without max_level or min Jul 17, 2024
@Jingru923 Jingru923 changed the title level_demand can now be without max_level or min level_demand can now be without max_level or min_level Jul 17, 2024
Copy link
Collaborator

@SouthEndMusic SouthEndMusic left a comment

Choose a reason for hiding this comment

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

It's nice that we have this now, but you should also add a test where you run a model with the default min_level and max_level and check that there us no crash.

@Jingru923 Jingru923 requested a review from SouthEndMusic July 18, 2024 15:32
Copy link
Collaborator

@SouthEndMusic SouthEndMusic 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, I have one single suggestion.

@Jingru923 Jingru923 merged commit be3247c into main Jul 22, 2024
@Jingru923 Jingru923 deleted the level-min-max branch July 22, 2024 12:51
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.

Allow LevelDemand nodes with neither a min_level nor a max_level

2 participants