Skip to main content

Rasterio code analyzer

Project description

Rasterio 1.0 will not permit reading from datasets opened in “w” mode. The rasterio_code_analyzer module can be used to find such deprecated usage.

This module requires Python 3.6.

Running it on Rasterio’s tests (as of 2018-04-11) yields the following output.

` $ parallel 'python -m rasterio_code_analyzer {}' ::: tests/*.py In file tests/test_complex_dtypes.py dataset.read() is called on line 37 and column 18 where dataset is opened in 'w' mode In file tests/test_dataset_rw.py dst.read() is called on line 37 and column 20 where dst is opened in 'w' mode In file tests/test_gdal_raster_io.py dataset.read() is called on line 35 and column 18 where dataset is opened in 'w' mode In file tests/test_gdal_raster_io.py dataset.read() is called on line 47 and column 18 where dataset is opened in 'w' mode In file tests/test_gdal_raster_io.py dataset.read() is called on line 59 and column 18 where dataset is opened in 'w' mode In file tests/test_gdal_raster_io.py dataset.read() is called on line 73 and column 17 where dataset is opened in 'w' mode In file tests/test_gdal_raster_io.py dataset.read() is called on line 89 and column 17 where dataset is opened in 'w' mode In file tests/test_rio_mask.py out.read() is called on line 200 and column 12 where out is opened in 'w' mode `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

rasterio_code_analyzer-1.0.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file rasterio_code_analyzer-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rasterio_code_analyzer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 230296e7821dace3caa824731dde27a0c176d6293ac3ba04c9414e60fef645eb
MD5 4bd6dbd35fb9497b8816c692f65f7795
BLAKE2b-256 495e3bad6b6f7f93a393e67515134a1871cb61835226de98520c9bb61820b5ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page