Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reaction bounds in _add_cycle_free function #1375

Merged
merged 2 commits into from
Feb 18, 2024

Conversation

alexpan00
Copy link
Contributor

@alexpan00 alexpan00 commented Feb 8, 2024

fix: reaction bounds in _add_cycle_free function are assigned according to the description in CycleFreeFlux paper

In _add_cycle_free function, when the original flux is > 0, the ub is forced to be the maximum value between the flux and the reaction ub. It should be the minimum between these 2 values according to the CycleFreeFlux paper. The same happens with the lb of reactions with flux < 0. It has been modified to be the maximum between the original flux and the reaction lb.

@alexpan00
Copy link
Contributor Author

I am not really sure about what is causing the error with lint and how to fix that.

@Midnighter
Copy link
Member

Hey,

Thank you for the contribution. The lint errors are not related to your lines of code, but there's probably a new version of black causing this. @cdiener the code changes make sense to me, but you're probably most familiar with the code. Can you take a look, please?

Copy link
Member

@cdiener cdiener left a comment

Choose a reason for hiding this comment

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

This looks good. Lint errors are unrelated.

@alexpan00
Copy link
Contributor Author

Nice, is there anything else I should do?

@cdiener
Copy link
Member

cdiener commented Feb 15, 2024

Nice, is there anything else I should do?

Sorry for the delay, currently in the middle of a move. But that looks mostly good. Can you resolve the missing checkpoints? New tests are not necessary here but a mention in the release notes would be required.

@Midnighter Midnighter mentioned this pull request Feb 18, 2024
@cdiener cdiener self-assigned this Feb 18, 2024
@Midnighter Midnighter merged commit d6632a4 into opencobra:devel Feb 18, 2024
8 checks passed
@alexpan00
Copy link
Contributor Author

I just read the notification, thanks for finishing this for me.

@alexpan00 alexpan00 deleted the fix-bounds-_add_cycle_free branch February 21, 2024 11:32
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.

Error assigning the bounds in _add_cycle_free
3 participants