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

Comments

CLIMATE-912 Upgrade mccSearch code from Python2 > 3#439

Merged
asfgit merged 3 commits intoapache:masterfrom
lewismc:CLIMATE-912
Sep 11, 2017
Merged

CLIMATE-912 Upgrade mccSearch code from Python2 > 3#439
asfgit merged 3 commits intoapache:masterfrom
lewismc:CLIMATE-912

Conversation

@lewismc
Copy link
Member

@lewismc lewismc commented Apr 26, 2017

This issue addresses CLIMATE-912

@lewismc
Copy link
Member Author

lewismc commented Apr 26, 2017

@kwhitehall if you are able to pull this PR locally and try it out with some test data (and reference the data here so I can also try it out) it would be very much appreciated.

@kwhitehall
Copy link
Contributor

Ack'ed @lewismc

@lewismc
Copy link
Member Author

lewismc commented Apr 27, 2017

Thank you @kwhitehall

@lewismc
Copy link
Member Author

lewismc commented May 25, 2017

Hi @kwhitehall I just went to look at some more OCW code and my local branch was set to this issue. I had to come here to remind myself what the issue was about. Did you get any time at all to take a look through this?

@kwhitehall
Copy link
Contributor

kwhitehall commented May 30, 2017

Hey @lewismc
Tested and found the following:

  1. need to convert this spaces to tabs in this folder
  2. updat code to reduce the number of datasets needed to test.
    Code for test can be obtained at the this Google Drive loc

Note that I did a hacky update cause another error flagged in dataset_processor.py by changing them to:
spatial_indices_true = np.where(spatial_values.mask.all)
spatial_indices_false = np.where(not spatial_values.mask.all)
I haven't included these as something to include in this PR as more investigation needs to be done to ensure that this doesn't break the code otherwise.

The PR has been pushed to my local here.
I'll work on pushing it to your PR. Do you have direction on this?

@lewismc
Copy link
Member Author

lewismc commented Aug 5, 2017

Hi @kwhitehall I am sorry I didn't get back to you on this.
We need to update the PR to resolve conflicts. I will take a wee look on Monday.

print("\n -------------- Read MERG Data ----------")
mergImgs, timeList = mccSearch.readMergData(CEoriDirName)
print ("-" * 80)
print(("-" * 80))
Copy link
Contributor

Choose a reason for hiding this comment

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

Recommendation to change print(("-" * 80)) to print("-" * 80) in eight places. The double nested parens (( )) are not needed and only slow down your reader. Repeated on lines: 60, 71, 73, 76, 78, 81, 84, 107.

print("\n -------------- Read MERG Data ----------")
mergImgs, timeList = mccSearch.readMergData(CEoriDirName)
print ("-" * 80)
print(("-" * 80))
Copy link
Contributor

Choose a reason for hiding this comment

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

Recommendation to change print(("-" * 80)) to print("-" * 80) in eight places. The double nested parens (( )) are not needed and only slow down your reader. Repeated on lines: 64, 75, 77, 80, 82, 86, 89, 112.

@asfgit asfgit merged commit 9a30e19 into apache:master Sep 11, 2017
@lewismc lewismc deleted the CLIMATE-912 branch September 11, 2017 14:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants