Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • beat.backend.python beat.backend.python
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 5
    • Issues 5
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • beatbeat
  • beat.backend.pythonbeat.backend.python
  • Merge requests
  • !73

Fixes a few warnings and depracations

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Amir MOHAMMADI requested to merge warnings-and-deprecations into master Jun 18, 2020
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 3

Fixes the following warnings and depracations

beat.backend.python/beat/backend/python/data.py:414: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/amir/idiap/git/beat/livedet2020-iris-beat-demo/prefix/cache/23/86/05/ce9947508c178d11aaabb2affee908e38dd13d072d0a6e2c736b925254.0.34.data.checksum' mode='rt' encoding='UTF-8'>
  expected_chksum = open(f_chck, "rt").read().strip()
beat.backend.python/beat/backend/python/baseformat.py:361: DeprecationWarning: np.asscalar(a) is deprecated since NumPy v1.16, use a.item() instead
  to_read = numpy.asscalar(dtype.itemsize*count)
beat.backend.python/beat/backend/python/baseformat.py:362: DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead
  a = numpy.fromstring(fd.read(to_read), dtype=data_format, count=count)
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: warnings-and-deprecations