Deprecate the lower and upper bound behavior #1294
Replies: 6 comments
-
Maybe to give some context, this behavior was introduced when
I went for No. 2 because setting both lower and upper bounds for reactions is a common task and I wanted to make it convenient. I started using cobrapy and cameo for teaching and it was important to me to keep it as easy to use as possible. Also, the third option (and best solution) So, I apologize for this dubious design decision 🙁. I am not sure anyone has ever been bitten by this and deprecating this behavior will break code. On the other hand I think it the right thing to do and all problematic code should be fixed with the use of |
Beta Was this translation helpful? Give feedback.
-
I actually think this behavior is okay. Not ideal but totally fine. The problem I see with it (and why I put the deprecation warning on it that maybe should have been a user warning) is that it is some extra behavior in a property, i.e., people will use it just like an attribute and never look at the documentation for it. It is also not to be found in the documentation. So this warning is my attempt at seeing how many people have used this behavior without knowing about it and have fixed their reactions unwittingly. I'm not 100% committed to this path and I am open to removing the deprecation warning again after gaging impact. Especially now that everything will become better documented with Greg's PR #792. |
Beta Was this translation helpful? Give feedback.
-
This behaviour has now been removed in #1058 and is superseded by the |
Beta Was this translation helpful? Give feedback.
-
Can we convert this issue into a discussion so that in future, users can refer to the points presented here? Also, it becomes a bit of a problem to scavenge through closed issues. |
Beta Was this translation helpful? Give feedback.
-
I am out of this, does this mean there is no |
Beta Was this translation helpful? Give feedback.
-
From what I can see in the PR, it just means that, while |
Beta Was this translation helpful? Give feedback.
-
Please voice your opinion here and state your use-case for the old behavior of setting bounds, i.e., constraining a reaction to a single flux value when setting the lower bound to be larger than the upper bound or when setting the upper bound to be smaller than the lower bound.
Beta Was this translation helpful? Give feedback.
All reactions