Closed jbusecke closed 4 years ago
Thank you for posting this, @jbusecke!
In my case the dcpp_init_year is populated by nans, which might throw of pandas groupby.
This is one thing I overlooked in my previous implementation.
I will update the script
Would be happy to submit a PR, but prob need some help constructing the tests.
As an update, I addressed this issue in #71.
Would be happy to submit a PR, but prob need some help constructing the tests.
Constructing tests for the existing utilities is a reasonable thing to do. It just hasn't been done yet. It would nice to have some tests in the future.
I just tested the new PR and can confirm that it works. Thanks.
I have built a catalog file using
cmip.py
with the--pick-latest-version
flag. I am still seeing duplicate versions in my catalog file.I experimented with the
_pick_latest_version
locally and was able to rectify my dataframe by adding the field
'dcpp_init_year'
to the fields that are excluded from the groupby call:In my case the
dcpp_init_year
is populated by nans, which might throw of pandas groupby.