Skip to content

Commit

Permalink
Removing python2 compatibility (#140)
Browse files Browse the repository at this point in the history
* Removing __future__ calls

* pep8 corrections

Co-authored-by: Federico Ariza <[email protected]>
  • Loading branch information
fariza and Federico Ariza authored Jan 19, 2022
1 parent 575e536 commit f3526f3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For more information visit `the documentation page


Camera Testing : Pytest
-------------
------------------------
Install the requirements needed for running pytests:

*pip install -r requirements-test.txt*
Expand Down
1 change: 0 additions & 1 deletion emva1288/process/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"""

from __future__ import print_function
import numpy as np

from . import routines
Expand Down
1 change: 0 additions & 1 deletion emva1288/process/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
values.
"""

from __future__ import print_function
import logging
import numpy as np
from emva1288.process import routines
Expand Down
2 changes: 1 addition & 1 deletion emva1288/process/routines.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"""Utils functions
"""
from __future__ import print_function
import numpy as np
import os
from scipy.optimize import leastsq
Expand All @@ -21,6 +20,7 @@

SIGNIFICANT_DIGITS = 7


def load_image(fname):
img = Image.open(fname)
img = np.asarray(img.split()[0])
Expand Down
3 changes: 2 additions & 1 deletion examples/emva_xml_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
fcompare = 'EMVA1288_Compare.txt'

u = process.routines.compare_xml(os.path.join(dir_, fresult1),
os.path.join(dir_, fresult2), os.path.join(dir_, fcompare))
os.path.join(dir_, fresult2),
os.path.join(dir_, fcompare))
print(u)
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[bdist_wheel]
universal = 1

7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,13 @@
version=__version__,
description='EMVA1288 reference implementation',
long_description=long_description,
long_description_content_type='text/x-rst',
author='Federico Ariza',
author_email='[email protected]',
url='https://github.com/EMVA1288/emva1288',
keywords=['sensors', 'cameras'],
classifiers=['Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4'],
classifiers=['Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6'],
install_requires=install_requires,
extras_require={'doc': extra_doc},
package_data={'emva1288': ['report/files/*', 'report/templates/*',
Expand Down

0 comments on commit f3526f3

Please sign in to comment.