-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use pythonic names #8
Comments
OK, I've had a go at this. I don't like unnecessary breaking changes, but I do get your point. I've tried to make consistent changes to both this library and |
I'd highly suggest running the following in the root of your repo before considering this issue closed:
More information about how PEP-8 naming checks works here: https://docs.astral.sh/ruff/rules/#pep8-naming-n. I guess it might be initially frustrating to get errors like
but, people who read your code will highly appreciate not having cryptic variable names everywhere |
Have had a good go at cleaning up ruff suggestions |
The repository uses very java-flavored names, which makes it less approachable for python programmers. You can read PEP-8's naming conventions guide to get familiar with https://peps.python.org/pep-0008/#naming-conventions
for example,
step = lvmod.stepGillespie()
feels very java. Python conventions would be to write it asstep = lvmod.step_gillespie()
similarly, using the number 2 instead of
to
is also not very pythonicjax-smfsb/src/jsmfsb/smfsbSbml.py
Line 12 in 71a139c
should be
mod_to_spn
, or ideally, something that is not an abbreviationI understand that this might be because you're trying to mimic the interface of
smfsb
, but this is irrelevant in terms of reviewing this repoThe text was updated successfully, but these errors were encountered: