PolarGeospatialCenter / imagery_utils

Other
34 stars 10 forks source link

Python 3 compatibility #8

Closed stevefoga closed 6 years ago

stevefoga commented 6 years ago

These changes ensure all scripts are compatible with both Python 2.7+ and 3. The core functionality is essentially the same, but several conventions (e.g., string parsing, data type handling) were modified to support both versions. Numerous formatting conventions were modified for consistency. Where possible, all non-cosmetic changes were submitted as distinct commits for maximum traceability.

Code testing was performed using Python 2.7.13 (with GDAL 2.1.1) and Python 3.6.5 (with GDAL 2.2.4) using Pylint, imagery_utils' built-in function/unit tests, and ad hoc tests.

Regression testing was performed, and passed without error, using the GeoTIFF files produced by func_test_ortho.py, using the original code run in Python 2, the new code run in Python 2, and the new code run in Python 3.