Skip to content

Commit

Permalink
Add docstring to is_number method
Browse files Browse the repository at this point in the history
  • Loading branch information
nanglo123 committed Jan 22, 2024
1 parent 2818c7a commit c4c8423
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/acsets/amr_conversion/stockflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@


def is_number(number):
"""
Tests to see if an operand in an expression is a number or not.
"""
try:
float_num = float(number)
return True
Expand Down

0 comments on commit c4c8423

Please sign in to comment.