mhe / pynrrd

Simple pure-python module for reading and writing nrrd files.
https://pynrrd.readthedocs.io/
MIT License
116 stars 51 forks source link

Fix numpy tostring warnings #112

Closed mscheifer closed 3 years ago

mscheifer commented 3 years ago

Using the tostring function causes warnings like this starting in numpy 1.19:

DeprecationWarning: tostring() is deprecated. Use tobytes() instead.

The simple fix is to replace them with tobytes which does the same thing.

Closes #110

codecov-io commented 3 years ago

Codecov Report

Merging #112 (fe29a17) into master (eacf69d) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #112   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         7    +1     
  Lines          391       397    +6     
  Branches       126       126           
=========================================
+ Hits           391       397    +6     
Impacted Files Coverage Δ
nrrd/writer.py 100.00% <100.00%> (ø)
nrrd/__init__.py 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update eacf69d...fe29a17. Read the comment docs.