PaulHancock / Aegean

The Aegean source finding program and associated tools
http://aegeantools.rtfd.io/
Other
47 stars 14 forks source link

Deprecation warnings during travis build #147

Closed PaulHancock closed 2 years ago

PaulHancock commented 3 years ago

The following deprecation warnings occur when building via travis:

AegeanTools/fitting.py:303
  /home/travis/build/PaulHancock/Aegean/AegeanTools/fitting.py:303: DeprecationWarning: invalid escape sequence \s
    """
AegeanTools/fitting.py:1280
  /home/travis/build/PaulHancock/Aegean/AegeanTools/fitting.py:1280: DeprecationWarning: invalid escape sequence \s
    """
AegeanTools/MIMAS.py:362
  /home/travis/build/PaulHancock/Aegean/AegeanTools/MIMAS.py:362: DeprecationWarning: invalid escape sequence \s
    words = re.split('[(\s,)]', line)
AegeanTools/MIMAS.py:396
  /home/travis/build/PaulHancock/Aegean/AegeanTools/MIMAS.py:396: DeprecationWarning: invalid escape sequence \s
    words = re.split('[(,\s)]', line)
AegeanTools/MIMAS.py:425
  /home/travis/build/PaulHancock/Aegean/AegeanTools/MIMAS.py:425: DeprecationWarning: invalid escape sequence \s
    words = re.split('[(\s,)]', line)
AegeanTools/source_finder.py:2792
  /home/travis/build/PaulHancock/Aegean/AegeanTools/source_finder.py:2792: DeprecationWarning: invalid escape sequence \d
    """
AegeanTools/source_finder.py:2898
  /home/travis/build/PaulHancock/Aegean/AegeanTools/source_finder.py:2898: DeprecationWarning: invalid escape sequence \I
    sf.find_sources_in_image(filename="..\\Test\Images\\1904-66_SIN.fits")
tests/test_fitting.py::test_make_ita

tests/test_msq2.py::test_multi_islands
  /home/travis/build/PaulHancock/Aegean/tests/test_msq2.py:29: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
  Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    data = np.zeros((7, 9), dtype=np.int)
tests/test_source_finder.py::test_save_files

  /home/travis/build/PaulHancock/Aegean/AegeanTools/source_finder.py:1169: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
    self.global_data.img._pixels[[idx, idy]] = np.nan
PaulHancock commented 2 years ago

Not a problem when old versions of python are dropped in #172 (and now that i'm using GitHub to do builds)