Closed kujaku11 closed 9 months ago
Attention: 2 lines
in your changes are missing coverage. Please review.
Comparison is base (
02d27e9
) 83.99% compared to head (7017e0e
) 84.00%. Report is 1 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
mt_metadata/transfer_functions/core.py | 89.47% | 2 Missing :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
There was a double initialization of the transfer function xarray.Dataset. Once when
TF
is initiated then then again withperiod
is set. Update such thatTF(period=periods)
that way it only initiates once.There is a slow down in building the
xarray.Dataset
, which I think comes from we are combining a couple differentxarray.DataArrays
that have slightly different coordinates and when you combine then eachDataArray
needs to be aligned and this seems to be where the slow down is. Not sure how to get around that. This PR at least alleviates the double initialization and reduces the initialization time by 1/3.