-
Notifications
You must be signed in to change notification settings - Fork 0
flux balance #98
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
base: master
Are you sure you want to change the base?
flux balance #98
Conversation
joseph-hellerstein
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For functions with more than a couple of lines, include a comment on what the function does. Function signatures (types of arguments + return value) should be documented. You can either using typing or a comment in the function.
| self.process_function_call(node, scope) | ||
| elif type(node.get_stmt()) == IsAssignment: | ||
| self.process_is_assignment(node, scope) | ||
| elif type(node.get_stmt()) == Assignment: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use isinstance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use isinstance
We should create another PR for all this type of problem, because it has been the way it is.
| elif type(node.get_stmt()) == FluxBalanceConstraints: | ||
| self.process_flux_balance(node, scope) | ||
|
|
||
| def check_parse_tree_function(self, function, scope): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
either use typing or have a function comment that provides the type of arguments and return values (if not None).
|
We could do a separate cleanup for stuff like this. The other thing that I
do is that I fix it as I go with PR sake cover the same group of code.
On Tue, Oct 4, 2022 at 11:47 PM longxf ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In vscode-antimony/src/server/stibium/stibium/analysis.py [github.com]
<https://urldefense.com/v3/__https://github.com/sys-bio/vscode-antimony/pull/98*discussion_r987582715__;Iw!!K-Hz7m0Vt54!npH9PEDtuBMvWeg648qL9ruQX63Gi9xU_JWx0veMWdrqDnX9vft1RAleuBbJMIsBmvyrvazt3Wk8HBN3s6EAVCPw$>
:
> @@ -225,6 +231,8 @@ def check_parse_tree(self, root, scope):
self.process_is_assignment(node, scope)
elif type(node.get_stmt()) == Assignment:
Use isinstance
We should create another PR for all this type of problem, because it has
been the way it is.
—
Reply to this email directly, view it on GitHub [github.com]
<https://urldefense.com/v3/__https://github.com/sys-bio/vscode-antimony/pull/98*discussion_r987582715__;Iw!!K-Hz7m0Vt54!npH9PEDtuBMvWeg648qL9ruQX63Gi9xU_JWx0veMWdrqDnX9vft1RAleuBbJMIsBmvyrvazt3Wk8HBN3s6EAVCPw$>,
or unsubscribe [github.com]
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ACVJIRJ2VXDTQDCFNLZ4GTTWBUP6LANCNFSM557SWOWA__;!!K-Hz7m0Vt54!npH9PEDtuBMvWeg648qL9ruQX63Gi9xU_JWx0veMWdrqDnX9vft1RAleuBbJMIsBmvyrvazt3Wk8HBN3s12HMvze$>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
luciansmith
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple small fixes, but most things look fine.
|
Lucian - thanks for your help on this PR and others as well. Joe.
On Wed, Oct 19, 2022 at 10:00 PM Lucian Smith ***@***.***> wrote:
***@***.**** requested changes on this pull request.
A couple small fixes, but most things look fine.
—
Reply to this email directly, view it on GitHub [github.com]
<https://urldefense.com/v3/__https://github.com/sys-bio/vscode-antimony/pull/98*pullrequestreview-1148127816__;Iw!!K-Hz7m0Vt54!jYHo1iT7tSykZyObi1ju9MDzd190FjbBGnrMm2CUen2DhQjyzekNstCVVAwweWIZHKpxB2I0UDHTpXo9KZJTGOQA$>,
or unsubscribe [github.com]
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ACVJIRNHEYEZ5MSRQHRCFHLWEBAKJANCNFSM557SWOWA__;!!K-Hz7m0Vt54!jYHo1iT7tSykZyObi1ju9MDzd190FjbBGnrMm2CUen2DhQjyzekNstCVVAwweWIZHKpxB2I0UDHTpXo9KazxAHms$>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
Do not merge this branch yet, conflict in antimony.lark needs to be resolved |
No description provided.