Skip to content

Conversation

@nawtrey
Copy link
Collaborator

@nawtrey nawtrey commented Apr 16, 2025

Description

  • Changes calc_net_cycle_flux to calc_cycle_flux, and adds parameter net to toggle between one-way and net cycle fluxes

  • Updates calc_pi_difference to allow for retrieving the forward cycle rate product by adding the same net parameter (net=True returns the cycle product difference)

  • Updates call signatures throughout calculations.py and test_kda.py

  • Related to issue ENH: Add KineticModel method for calculating net cycle fluxes #57

Status

  • Ready to go

* Changes `calc_net_cycle_flux` to `calc_cycle_flux`,
and adds parameter `net` to toggle between one-way
and net cycle fluxes

* Updates `calc_pi_difference` to allow for retrieving
the forward cycle rate product by adding the same `net`
parameter (`net=True` returns the cycle product difference)

* Updates call signatures throughout
`calculations.py` and `test_kda.py`

* Related to issue #57
@nawtrey nawtrey added the enhancement New feature or request label Apr 16, 2025
* Removes italicized text in docstrings

* Removes redundant statements
@nawtrey
Copy link
Collaborator Author

nawtrey commented Apr 16, 2025

The purpose of the changes here is not just to add functionality, but to make things easier upstream when we start implementing net cycle flux calculations with the API. Since we offer the same functionality for transition fluxes (i.e., one-way and net), it makes sense to offer a similar interface for the cycle fluxes.

@nawtrey nawtrey merged commit 502a920 into master Apr 16, 2025
6 checks passed
@nawtrey nawtrey deleted the issue_57_one_way_cycle_fluxes branch April 16, 2025 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants