CLIMATE-912 Upgrade mccSearch code from Python2 > 3#439
CLIMATE-912 Upgrade mccSearch code from Python2 > 3#439asfgit merged 3 commits intoapache:masterfrom
Conversation
|
@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. |
|
Ack'ed @lewismc |
|
Thank you @kwhitehall |
|
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? |
|
Hey @lewismc
Note that I did a hacky update cause another error flagged in dataset_processor.py by changing them to: The PR has been pushed to my local here. |
|
Hi @kwhitehall I am sorry I didn't get back to you on this. |
mccsearch/code/mainProg.py
Outdated
| print("\n -------------- Read MERG Data ----------") | ||
| mergImgs, timeList = mccSearch.readMergData(CEoriDirName) | ||
| print ("-" * 80) | ||
| print(("-" * 80)) |
There was a problem hiding this comment.
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.
mccsearch/code/mainProgTemplate.py
Outdated
| print("\n -------------- Read MERG Data ----------") | ||
| mergImgs, timeList = mccSearch.readMergData(CEoriDirName) | ||
| print ("-" * 80) | ||
| print(("-" * 80)) |
There was a problem hiding this comment.
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.
This issue addresses CLIMATE-912