Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

CLIMATE-883 - Ensure python 3 builds pass unit tests #416

Merged
merged 3 commits into from Oct 24, 2016

Conversation

agoodm
Copy link
Member

@agoodm agoodm commented Oct 22, 2016

This PR should solve most of the Python 3 compatibility issues we have been having. The biggest ones remaining are some of our examples as well as run_RCMES.py. I included a minor hotfix to an issue with that file as well for the sake of ensuring these changes don't break our workflow in Python 2.7.

In addition to unit tests, I also ran the podaac example and other than some deprecation warnings, everything seems good.

@lewismc @huikyole please review / comment. I have tested one config file for CORDEX Africa and it worked, but feel free to perform any other tests as you see fit.

@OCWJenkins
Copy link

Can one of the admins verify this patch?

@agoodm agoodm closed this Oct 22, 2016
@agoodm agoodm reopened this Oct 22, 2016
@agoodm
Copy link
Member Author

agoodm commented Oct 22, 2016

Restarting because one of the builds failed due to connection issues.

Copy link
Member

@lewismc lewismc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great @agoodm . I've pulled it locally and all tests pass on Python 2.7 and 3.5. Sterling job.

@@ -74,7 +79,8 @@ def _make_mask_array(values, parameter_id, parameters_metadata):
'''

for each in parameters_metadata:
if each['parameter_id'].encode() == str(parameter_id):
if str(each['parameter_id']) == str(parameter_id):
print('ok')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove this logging @agoodm

@agoodm
Copy link
Member Author

agoodm commented Oct 24, 2016

Fixed. Once again CI build failure seems to be due to connectivity issues, so I will merge later today if no further discussion.

@asfgit asfgit merged commit 386f7b9 into apache:master Oct 24, 2016
@lewismc
Copy link
Member

lewismc commented Oct 25, 2016

+1 from me

On Monday, October 24, 2016, Alex Goodman notifications@github.com wrote:

Fixed. Once again CI build failure seems to be due to connectivity issues,
so I will merge later today if no further discussion.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#416 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABHJlyWYQjNexzz1Y68qFZIPlNXC_ZWBks5q3P7AgaJpZM4KdtJr
.

Lewis
Dr. Lewis J. McGibbney Ph.D, B.Sc
Director, MCMA Associates
Phone: +1(626)498-3090
Skype: lewis.john.mcgibbney
Email: lewis.mcgibbney@gmail.com

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants