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: Refactor calc_net_cycle_flux #110

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

nawtrey
Copy link
Collaborator

@nawtrey nawtrey commented Aug 14, 2024

Description

I noticed both calc_net_cycle_flux and calc_net_cycle_flux_from_diags were identical code with the exception of 1 line. This just simplifies the code a bit so we don't have redundant code in two functions.

Changes

  • Refactors calc_net_cycle_flux to use calc_net_cycle_flux_from_diags directly.
    Also simplifies calc_net_cycle_flux_from_diags
    to make clear what is changing for both cases of
    output_strings.

* Refactors `calc_net_cycle_flux` to use
`calc_net_cycle_flux_from_diags` directly.
Also simplifies `calc_net_cycle_flux_from_diags`
to make clear what is changing for both cases of
`output_strings`.
@nawtrey nawtrey merged commit 014d721 into master Aug 14, 2024
4 checks passed
@nawtrey nawtrey deleted the refactor_calc_net_cycle_flux branch August 14, 2024 05:27
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