Closed aretaon closed 9 months ago
Hi @aretaon,
I'm afraid you will have to downgrade matplotlib for this to work again. Alternatively, you could try the development version of MS²PIP 4.0: https://pypi.org/project/ms2pip/4.0.0.dev5/. This version uses the latest spectrum_utils, and has a much improved Python API. The prediction models are the same.
Let me know if either solutions work for you.
Best, Ralf
Hi Ralf,
thanks for looking into this. We eventually went with rewriting the required function to work with ms2pip 0.4.2 but I will have a look into the 4.0 version. I think we can consider this closed as you have probably addressed the issue in the upcoming version.
Best Julian
Bug summary
Python returns
ValueError: keyword grid_b is not recognized;
when running SinglePrediction.plot_prediction.This is related to spectrum_utils version 0.3.5 which still utilizes the b parameter which was deprectated in matplotlib 3.5 (see https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.5.0.html#the-first-parameter-of-axes-grid-and-axis-grid-has-been-renamed-to-visible).
However, ms2pip still requires spectrum_utils 0.3.5 as indicated by upgrading spectrum_utils with pip
ms2pip 3.11.0 requires spectrum-utils==0.3.5, but you have spectrum-utils 0.4.2 which is incompatible.
How to reproduce
Install ms2pip on a fresh conda environment with python==3.8 using
pip install ms2pip
. Run the following snippet:System
OS: Win10 Python: 3.8 pip: pip 23.3
Detailed traceback