Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warnings reported in test runs #334

Merged
merged 1 commit into from May 12, 2020

Conversation

dcslagel
Copy link
Collaborator

@dcslagel dcslagel commented May 11, 2020

  • test_read.py::test_missing_a_section
    DeprecationWarning: use array.size > 0 to check that an array is
    not empty. In this test we check that the array is empty, so not array.size > 0.
  • las/las_version.py
    DeprecationWarning: invalid escape sequence \d
    The solution is to use raw strings for regexs: r"\d" instead of "\d".

Let me know if this change could be accepted (or rejected) or
needs some additional changes before being approved and merged.

Thank you,
DC

- test_read.py::test_missing_a_section
  DeprecationWarning: use `array.size` > 0` to check that an array is
  not empty. In this test we check that the array is empty, so `not
  array.size > 0`.
- las/las_version.py
  DeprecationWarning: invalid escape sequence \d
  The solution is to use raw strings for regexs: r"\d" instead of "\d".
@kinverarity1 kinverarity1 merged commit 1b4f254 into kinverarity1:master May 12, 2020
@kinverarity1
Copy link
Owner

Thank you for addressing these!

@dcslagel dcslagel deleted the fix-deprecation-warnings branch May 12, 2020 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants