Skip to content

Comments

fix: Use expression in signed_number#9

Merged
FBumann merged 1 commit intoFBumann:fix/lp-variable-bound-zerofrom
coroa:fix/lp-variable-bound-zero-expression
Jan 19, 2026
Merged

fix: Use expression in signed_number#9
FBumann merged 1 commit intoFBumann:fix/lp-variable-bound-zerofrom
coroa:fix/lp-variable-bound-zero-expression

Conversation

@coroa
Copy link

@coroa coroa commented Jan 19, 2026

Hi @FBumann ,

thanks for the testing code over in PyPSA#544 , that allowed me to play a bit around. this proposal has the same time characteristics as your proposal, but is a bit cleaner IMHO.

Best,
Jonas

@coderabbitai
Copy link

coderabbitai bot commented Jan 19, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coroa coroa changed the title Use expression in signed_number fix: Use expression in signed_number Jan 19, 2026
@FBumann FBumann merged commit 7343fea into FBumann:fix/lp-variable-bound-zero Jan 19, 2026
1 check passed
FBumann added a commit that referenced this pull request Jan 20, 2026
* Fix -0.0 handling in lp writer

* Normalize -0.0 to +0.0 using when(abs(x) == 0).then(0.0).otherwise(x) before formatting

* Add release notes

* Cast to Float64 first to handle columns that are entirely null (dtype `null`)

* fix: make signed_number work on expressions (#9)

---------

Co-authored-by: Jonas Hörsch <coroa@posteo.de>
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