Open lee1043 opened 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
c653bf2
) to head (2013950
).:exclamation: Current head 2013950 differs from pull request most recent head 7f9d2e3
Please upload reports for the commit 7f9d2e3 to get more accurate results.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Test code attached: Archive.zip
Thanks for this PR @lee1043! I will more closely either some time at the end of this week or early next week.
@lee1043 – Thanks for taking on this PR. This seems like a handy option to have in xcdat. I just took a quick look at this – it seems like skipna
should be added to the docstring (since it is now available in the public API). I'm also curious if you can copy a couple existing unit tests, add a np.nan
value somewhere, and ensure that the NaN
value propagates to the final result (I think this is the expected behavior).
@pochedls thanks for the suggestion. I will work on these and ping you and @tomvothecoder for review once ready.
I'm assuming that we want to add the skipna
arg to group_average()
, climatology()
, and departures()
(in addition to average()
). Is this correct @lee1043 and @pochedls? I made these updates in this commit 7f9d2e3
(#655) along with adding unit tests.
I'm assuming that we want to add the
skipna
arg togroup_average()
,climatology()
, anddepartures()
(in addition toaverage()
). Is this correct @lee1043 and @pochedls? I made these updates in this commit7f9d2e3
(#655) along with adding unit tests.
I think so. This probably needs to be tested on real data (I can't think of unintended consequences, but it is worth stress testing a little).
Description
Enable
skipna
parameter for mean operation.Checklist
If applicable: