OpenMS / pyopenms-docs

pyOpenMS readthedocs documentation, additional utilities, addons, scripts, and examples.
https://pyopenms.readthedocs.io
Other
42 stars 50 forks source link

Explicitly import pyOpenMS in the example python codes #396

Closed JeeH-K closed 1 year ago

JeeH-K commented 1 year ago

Addressing #278

timosachsenberg commented 1 year ago
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[8], line 34
     31 consumer = oms.PlainMSDataWritingConsumer(outputfile)
     32 consumer = FilteringConsumer(consumer, filter_string)
---> 34 oms.MzMLFile().transform(inputfile,consumer)

File pyopenms/_pyopenms_7.pyx:10193, in pyopenms._pyopenms_7.MzMLFile.transform()

File pyopenms/_pyopenms_7.pyx:10279, in pyopenms._pyopenms_7.MzMLFile._transform_1()

RuntimeError: - due to that error of type FileNotFound in: /__w/OpenMS/OpenMS/OpenMS/src/openms/source/FORMAT/XMLFile.cpp@107-void OpenMS::Internal::XMLFile::parse_(const OpenMS::String&, OpenMS::Internal::XMLHandler*)

I didn't check but it might be the change from output to python block. Maybe the code is not executable or a file missing. I think a quick fix for your PR would be to change it back to output.

timosachsenberg commented 1 year ago

see the Build and Test code in notebooks / build-test (pull_request) Failing after 10m

https://github.com/OpenMS/pyopenms-docs/actions/runs/5007811683/jobs/8974914327?pr=396

some oms might be missing ;)

timosachsenberg commented 1 year ago

🙏 thanks