Giter Site home page Giter Site logo

Comments (5)

justinjjvanderhooft avatar justinjjvanderhooft commented on July 26, 2024 1

Indeed, now the matplotlib plotting is working fine! Thanks Wout.

from spectrum_utils.

bittremieux avatar bittremieux commented on July 26, 2024

The notebook indeed uses some LaTeX functionality, more precisely for styling the plot titles (different font sizes, etc.). Typically you won't need this functionality, I just wanted it to look a bit nicer than you can get with Matplotlib only.

So you need to either have LaTeX on the path to run the notebook, or you need to disable the second cell to not use LaTeX. (In the latter case the plot titles will look weird because they contain LaTeX commands, but it should run.)

I need to extend the documentation to make that clear and to demonstrate additional functionality.

from spectrum_utils.

justinjjvanderhooft avatar justinjjvanderhooft commented on July 26, 2024

Thanks Wout. The spectrum without any filtering does plot now!

However, I get a Typing error when applying the filtering relating to line 258 in the spectrum.py file (see below). Looks like numba expects something different (https://numba.pydata.org/numba-doc/dev/user/troubleshoot.html) but I don't know what. And assuming it works okay at your end, it could be a versioning issue with one of the required packages as well.

'''
TypingError: Failed at nopython (nopython frontend)
Invalid usage of == with parameters (str, const('Da'))
'''

from spectrum_utils.

bittremieux avatar bittremieux commented on July 26, 2024

Using strings in Numba-compiled functions is a bit tricky. Limited string support has only been added to Numba in version 0.41. So if you're using an older version you should probably just update Numba. On my end it works without any problems with Numba 0.45.

I'm adding this minimum Numba version to the dependency requirements. Thanks for reporting.

from spectrum_utils.

bittremieux avatar bittremieux commented on July 26, 2024

Great. The minimum Numba dependency will be specified in the next release. I'm not putting a minimum Pyteomics version because the MGF IO isn't part of the core spectrum_utils functionality, I just used it in the notebook to read the spectral data.

Let me know if you have further questions or comments. :)

from spectrum_utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.