Closed vrkosk closed 3 months ago
Hi @vrkosk,
There is indeed no issue with the paths that are set, but I agree that the wall of warnings are reasonably annoying. Unfortunately, pyOpenMS uses print
to write this warning, so there is currently no clean way to suppress it. There has been some discussion on this issue (https://github.com/OpenMS/OpenMS/pull/6979), but no actions were taken. I'll see if the pyOpenMS maintainers would consider reopening the PR.
Best, Ralf
I proposed changes to OpenMS to fix the issue (openms/openms#7418). If accepted, I can filter the warnings upstream in psm_utils (compomics/psm_utils#74).
That's great, thanks!
OpenMS/OpenMS#7418 has been merged, so a fix should be part of the next pyOpenMS version. Filtering of the warnings is now also implemented at the level of psm_utils (compomics/psm_utils#74).
I'm getting a persistent warning about OPENMS_DATA_PATH when I use ms2rescore.feature_generators.ms2pip.MS2PIPFeatureGenerator from a Python script.
Here's how I create the environment:
The script is the same as in issue #128. When I use the workaround (only output deltas in ProForma strings), there's a warning every time I run MS2PIPFeatureGenerator:
The directory paths are identical so I'm assuming the warning is harmless. But how and where do I suppress this warning?