dereneaton / ipyrad

Interactive assembly and analysis of RAD-seq data sets
http://ipyrad.readthedocs.io
GNU General Public License v3.0
72 stars 40 forks source link

pandas 1.4.0 breaks baba.py #475

Closed isaacovercast closed 2 years ago

isaacovercast commented 2 years ago
>>> pd.__version__
'1.4.0'
>>> pd.set_option("precision", 3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/iovercast/miniconda3/envs/ipyrad_py38/lib/python3.8/site-packages/pandas/_config/config.py", line 256, in __call__
    return self.__func__(*args, **kwds)
  File "/Users/iovercast/miniconda3/envs/ipyrad_py38/lib/python3.8/site-packages/pandas/_config/config.py", line 149, in _set_option
    key = _get_single_key(k, silent)
  File "/Users/iovercast/miniconda3/envs/ipyrad_py38/lib/python3.8/site-packages/pandas/_config/config.py", line 116, in _get_single_key
    raise OptionError("Pattern matched multiple keys")
pandas._config.config.OptionError: 'Pattern matched multiple keys'

This was called in baba.py. Pandas 1.4.0 added a new suite of options that also included a 'precision' element, so had to update the line in baba.py to: pd.set_option("display.precision", 3)