MAINT: calculations.py function and dirpar_ deprecations
#124
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Deprecates the parameter
dirpar_edgesin the following functions:calculations.calc_sigmacalculations.calc_state_probs_from_diagscalculations.calc_net_cycle_flux_from_diagsRe-introduces (with deprecated status) the
calculations.calc_net_cycle_fluxto allowfor KDA paper code to continue working
Updates docstrings for aforementioned functions so it is clear under which circumstances the
deprecation warnings will be produced
Updates
Test_Diagram_Generation.test_diagram_countsandTest_Diagram_Generation.test_max_connected_diagram_countsto remove mentions ofdirparsUpdates to
test_function_inputs:DeprecationWarnings are triggered whendirpar_edgesis used incalc_sigma,calc_state_probs_from_diags, etc.TypeErroris raised when no directional diagram edges/diagrams are inputDeprecationWarnings are raised when callingcalc_state_probs_from_diagsorcalc_net_cycle_flux_from_diagswith the deprecated parameterdirpar_edgesStatus