UserWarning: Duplicate names specified.
yantosca opened this issue · 0 comments
Hi --
FYI I get the following warning error when using xb.open_bpchdataset:
import os
import os.path as osp
import xarray as xr
import numpy as np
import xbpch as xb
ds = xb.open_bpchdataset('trac_avg.geosfp_4x5_POPs.201607010000.mp')
/net/seasasfs02/srv/export/seasasfs02/share_root/ryantosca/python/bmy/miniconda/envs/bmy/lib/python3.6/site-packages/pandas/io/parsers.py:710: UserWarning: Duplicate names specified. This will raise an error in the future.
return _read(filepath_or_buffer, kwds)
/net/seasasfs02/srv/export/seasasfs02/share_root/ryantosca/python/bmy/miniconda/envs/bmy/lib/python3.6/site-packages/xbpch/core.py:91: FutureWarning: iteration over an xarray.Dataset will change in xarray v0.11 to only include data variables, not coordinates. Iterate over the Dataset.variables property instead to preserve existing behavior in a forwards compatible manner.
for v in ds:
This might be generated in a dependent package like pandas but I'm not sure where.
I am using these versions:
xarray 0.10.8 py36_0 defaults
xbpch 0.3.3 py36_0 conda-forge
pandas 0.23.4 py36h04863e7_0 defaults
Do you know of a workaround for this (or a package that needs to be updated)?
Thanks
Bob Y.