Skip to content

fix: Include semi-continuous in Variable.type property#635

Merged
FabianHofmann merged 1 commit intomasterfrom
fix/variable-type-semi-continuous
Mar 26, 2026
Merged

fix: Include semi-continuous in Variable.type property#635
FabianHofmann merged 1 commit intomasterfrom
fix/variable-type-semi-continuous

Conversation

@FBumann
Copy link
Collaborator

@FBumann FBumann commented Mar 25, 2026

follow up on #593

Summary

  • Variable.type only checked integer and binary attributes, so semi-continuous variables incorrectly returned "Continuous Variable"
  • Added the missing semi_continuous check
  • Added test_variable_type covering all four variable types

No Changelog entry needed if included in the release that adds semi continuous variables

Test plan

  • New test test_variable_type verifies all four types: continuous, binary, integer, semi-continuous

🤖 Generated with Claude Code

Variable.type only checked integer and binary attributes, falling
through to "Continuous Variable" for semi-continuous variables.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@FBumann FBumann requested a review from FabianHofmann March 25, 2026 21:12
@FabianHofmann FabianHofmann merged commit 1bc3efc into master Mar 26, 2026
22 checks passed
@FabianHofmann FabianHofmann deleted the fix/variable-type-semi-continuous branch March 26, 2026 08:19
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