desihub / speclite

Lightweight utilities for working with spectroscopic data
14 stars 19 forks source link

py3.8 collections and docstring latex #55

Closed sbailey closed 4 years ago

sbailey commented 4 years ago

This PR makes two updates to avoid a slew of deprecation warnings in python 3.8:

Use collections.abc.Sequence instead of collections.Sequence to avoid:

  /Users/sbailey/desi/git/speclite/speclite/filters.py:1552: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
    class FilterSequence(collections.Sequence):

Convert the speclite.filters module docstring to a raw string and update the latex to avoid a bunch of warnings about invalid escape sequences.