Skip to content
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

MAINT: Clean up code in calculations.py module #112

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

nawtrey
Copy link
Collaborator

@nawtrey nawtrey commented Aug 16, 2024

  • Restructures all calculation functions so
    the symbolic output is first in the code path

  • Changes all output_strings/key mismatch
    errors to use the same error message

  • Changes various variable names to make
    code more readable

  • Simplifies kinetic rate (name) capture
    in calc_state_probs and calc_sigma for
    the ouput_strings=True code path

  • Simplifies returns for all functions so
    it is clear what the difference is between
    the output_strings code paths

* Restructures all calculation functions so
the symbolic output is first in the code path

* Changes all `output_strings`/`key` mismatch
errors to use the same error message

* Various variable name changes to make
code more readable
@nawtrey nawtrey merged commit 9493049 into master Aug 16, 2024
4 checks passed
@nawtrey nawtrey deleted the revise_calculations_module branch August 16, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant