Skip to content

Conversation

@longxf21
Copy link
Collaborator

@longxf21 longxf21 commented Aug 9, 2022

No description provided.

Copy link

@joseph-hellerstein joseph-hellerstein left a 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:

Choose a reason for hiding this comment

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

Use isinstance

Copy link
Collaborator Author

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):

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).

@joseph-hellerstein
Copy link

joseph-hellerstein commented Oct 11, 2022 via email

Copy link
Contributor

@luciansmith luciansmith left a 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.

@joseph-hellerstein
Copy link

joseph-hellerstein commented Oct 20, 2022 via email

@longxf21
Copy link
Collaborator Author

Do not merge this branch yet, conflict in antimony.lark needs to be resolved

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.

4 participants