2 | 2 |
Last-Updated: 2017-09-10
|
3 | 3 |
Forwarded: no
|
4 | 4 |
|
5 | |
Index: cmor-3.2.7/Lib/pywrapper.py
|
6 | |
===================================================================
|
7 | |
--- cmor-3.2.7.orig/Lib/pywrapper.py
|
8 | |
+++ cmor-3.2.7/Lib/pywrapper.py
|
|
5 |
Index: cmor-3.2.8/Lib/pywrapper.py
|
|
6 |
===================================================================
|
|
7 |
--- cmor-3.2.8.orig/Lib/pywrapper.py
|
|
8 |
+++ cmor-3.2.8/Lib/pywrapper.py
|
9 | 9 |
@@ -2,9 +2,9 @@ import numpy
|
10 | 10 |
import os
|
11 | 11 |
import warnings
|
|
33 | 33 |
if not 'value' in ks or not 'units' in ks:
|
34 | 34 |
raise Exception(
|
35 | 35 |
"error parameter_names key '%s' dictionary does not contain both 'units' and 'value' keys" %
|
36 | |
Index: cmor-3.2.7/Test/check_results.py
|
37 | |
===================================================================
|
38 | |
--- cmor-3.2.7.orig/Test/check_results.py
|
39 | |
+++ cmor-3.2.7/Test/check_results.py
|
|
36 |
Index: cmor-3.2.8/Test/check_results.py
|
|
37 |
===================================================================
|
|
38 |
--- cmor-3.2.8.orig/Test/check_results.py
|
|
39 |
+++ cmor-3.2.8/Test/check_results.py
|
40 | 40 |
@@ -1,5 +1,6 @@
|
41 | 41 |
-from out_files import out
|
42 | 42 |
-from in_files import input_tables
|
|
82 | 82 |
# os.remove(fnm)
|
83 | 83 |
else:
|
84 | 84 |
missing.append(fnm)
|
85 | |
Index: cmor-3.2.7/setup.py.in
|
86 | |
===================================================================
|
87 | |
--- cmor-3.2.7.orig/setup.py.in
|
88 | |
+++ cmor-3.2.7/setup.py.in
|
|
85 |
Index: cmor-3.2.8/setup.py.in
|
|
86 |
===================================================================
|
|
87 |
--- cmor-3.2.8.orig/setup.py.in
|
|
88 |
+++ cmor-3.2.8/setup.py.in
|
89 | 89 |
@@ -1,3 +1,5 @@
|
90 | 90 |
+
|
91 | 91 |
+from __future__ import print_function # to be python2/python3 agnostic
|
|
111 | 111 |
|
112 | 112 |
setup (name = "CMOR",
|
113 | 113 |
version='3.2',
|
114 | |
Index: cmor-3.2.7/Test/jamie_hybrid_height.py
|
115 | |
===================================================================
|
116 | |
--- cmor-3.2.7.orig/Test/jamie_hybrid_height.py
|
117 | |
+++ cmor-3.2.7/Test/jamie_hybrid_height.py
|
|
114 |
Index: cmor-3.2.8/Test/jamie_hybrid_height.py
|
|
115 |
===================================================================
|
|
116 |
--- cmor-3.2.8.orig/Test/jamie_hybrid_height.py
|
|
117 |
+++ cmor-3.2.8/Test/jamie_hybrid_height.py
|
118 | 118 |
@@ -1,5 +1,5 @@
|
119 | 119 |
#!/usr/bin/env python
|
120 | 120 |
-
|
|
150 | 150 |
|
151 | 151 |
cmor.close()
|
152 | 152 |
|
153 | |
Index: cmor-3.2.7/Test/test_python_appending.py
|
154 | |
===================================================================
|
155 | |
--- cmor-3.2.7.orig/Test/test_python_appending.py
|
156 | |
+++ cmor-3.2.7/Test/test_python_appending.py
|
|
153 |
Index: cmor-3.2.8/Test/test_python_appending.py
|
|
154 |
===================================================================
|
|
155 |
--- cmor-3.2.8.orig/Test/test_python_appending.py
|
|
156 |
+++ cmor-3.2.8/Test/test_python_appending.py
|
157 | 157 |
@@ -1,3 +1,4 @@
|
158 | 158 |
+from __future__ import print_function
|
159 | 159 |
import cmor
|
|
221 | 221 |
cmor.close()
|
222 | 222 |
return file
|
223 | 223 |
|
224 | |
@@ -98,7 +99,7 @@ data = numpy.random.random((ntime, 19, n
|
|
224 |
@@ -97,7 +98,7 @@ data = numpy.random.random((ntime, 19, n
|
225 | 225 |
|
226 | 226 |
f1 = mywrite(data=data[:6], time_vals=numpy.arange(
|
227 | 227 |
0, 6, 1), cell_bounds=numpy.arange(0, 7, 1))
|
|
231 | 231 |
6, 12, 1), cell_bounds=numpy.arange(6, 13, 1), append_to=f1)
|
232 | 232 |
-print f2
|
233 | 233 |
+print (f2)
|
234 | |
Index: cmor-3.2.7/Test/test_python_bad_date.py
|
235 | |
===================================================================
|
236 | |
--- cmor-3.2.7.orig/Test/test_python_bad_date.py
|
237 | |
+++ cmor-3.2.7/Test/test_python_bad_date.py
|
|
234 |
Index: cmor-3.2.8/Test/test_python_bad_date.py
|
|
235 |
===================================================================
|
|
236 |
--- cmor-3.2.8.orig/Test/test_python_bad_date.py
|
|
237 |
+++ cmor-3.2.8/Test/test_python_bad_date.py
|
238 | 238 |
@@ -1,3 +1,4 @@
|
239 | 239 |
+from __future__ import print_function
|
240 | 240 |
import cmor
|
|
271 | 271 |
|
272 | 272 |
|
273 | 273 |
if __name__ == '__main__':
|
274 | |
Index: cmor-3.2.7/Test/test_python_bentley_01.py
|
275 | |
===================================================================
|
276 | |
--- cmor-3.2.7.orig/Test/test_python_bentley_01.py
|
277 | |
+++ cmor-3.2.7/Test/test_python_bentley_01.py
|
|
274 |
Index: cmor-3.2.8/Test/test_python_bentley_01.py
|
|
275 |
===================================================================
|
|
276 |
--- cmor-3.2.8.orig/Test/test_python_bentley_01.py
|
|
277 |
+++ cmor-3.2.8/Test/test_python_bentley_01.py
|
278 | 278 |
@@ -1,3 +1,4 @@
|
279 | 279 |
+from __future__ import print_function
|
280 | 280 |
import cmor
|
|
316 | 316 |
|
317 | 317 |
|
318 | 318 |
if __name__ == '__main__':
|
319 | |
Index: cmor-3.2.7/Test/test_python_bounds_request.py
|
320 | |
===================================================================
|
321 | |
--- cmor-3.2.7.orig/Test/test_python_bounds_request.py
|
322 | |
+++ cmor-3.2.7/Test/test_python_bounds_request.py
|
|
319 |
Index: cmor-3.2.8/Test/test_python_bounds_request.py
|
|
320 |
===================================================================
|
|
321 |
--- cmor-3.2.8.orig/Test/test_python_bounds_request.py
|
|
322 |
+++ cmor-3.2.8/Test/test_python_bounds_request.py
|
323 | 323 |
@@ -1,3 +1,4 @@
|
324 | 324 |
+from __future__ import print_function
|
325 | 325 |
import cmor
|
|
354 | 354 |
ilev = cmor.axis(
|
355 | 355 |
table_entry="pressure2",
|
356 | 356 |
coord_vals=levs,
|
357 | |
Index: cmor-3.2.7/Test/test_python_cfmip_site_axis_test.py
|
358 | |
===================================================================
|
359 | |
--- cmor-3.2.7.orig/Test/test_python_cfmip_site_axis_test.py
|
360 | |
+++ cmor-3.2.7/Test/test_python_cfmip_site_axis_test.py
|
|
357 |
Index: cmor-3.2.8/Test/test_python_cfmip_site_axis_test.py
|
|
358 |
===================================================================
|
|
359 |
--- cmor-3.2.8.orig/Test/test_python_cfmip_site_axis_test.py
|
|
360 |
+++ cmor-3.2.8/Test/test_python_cfmip_site_axis_test.py
|
361 | 361 |
@@ -28,6 +28,7 @@ variables:
|
362 | 362 |
lev:formula_terms = "a: lev b: b orog: orog";
|
363 | 363 |
...
|
|
422 | 422 |
|
423 | 423 |
# Close CMOR.
|
424 | 424 |
cmor.close()
|
425 | |
Index: cmor-3.2.7/Test/test_python_clim_bounds.py
|
426 | |
===================================================================
|
427 | |
--- cmor-3.2.7.orig/Test/test_python_clim_bounds.py
|
428 | |
+++ cmor-3.2.7/Test/test_python_clim_bounds.py
|
|
425 |
Index: cmor-3.2.8/Test/test_python_clim_bounds.py
|
|
426 |
===================================================================
|
|
427 |
--- cmor-3.2.8.orig/Test/test_python_clim_bounds.py
|
|
428 |
+++ cmor-3.2.8/Test/test_python_clim_bounds.py
|
429 | 429 |
@@ -1,4 +1,5 @@
|
430 | 430 |
#!/usr/bin/env python
|
431 | 431 |
+from __future__ import print_function
|
|
441 | 441 |
axis_id = cmor.axis(**axis)
|
442 | 442 |
axis_ids.append(axis_id)
|
443 | 443 |
|
444 | |
Index: cmor-3.2.7/Test/test_python_clim_bounds_02.py
|
445 | |
===================================================================
|
446 | |
--- cmor-3.2.7.orig/Test/test_python_clim_bounds_02.py
|
447 | |
+++ cmor-3.2.7/Test/test_python_clim_bounds_02.py
|
|
444 |
Index: cmor-3.2.8/Test/test_python_clim_bounds_02.py
|
|
445 |
===================================================================
|
|
446 |
--- cmor-3.2.8.orig/Test/test_python_clim_bounds_02.py
|
|
447 |
+++ cmor-3.2.8/Test/test_python_clim_bounds_02.py
|
448 | 448 |
@@ -1,4 +1,5 @@
|
449 | 449 |
#!/usr/bin/env python
|
450 | 450 |
+from __future__ import print_function
|
|
460 | 460 |
axis_id = cmor.axis(**axis)
|
461 | 461 |
axis_ids.append(axis_id)
|
462 | 462 |
|
463 | |
Index: cmor-3.2.7/Test/test_python_clim_bounds_03.py
|
464 | |
===================================================================
|
465 | |
--- cmor-3.2.7.orig/Test/test_python_clim_bounds_03.py
|
466 | |
+++ cmor-3.2.7/Test/test_python_clim_bounds_03.py
|
|
463 |
Index: cmor-3.2.8/Test/test_python_clim_bounds_03.py
|
|
464 |
===================================================================
|
|
465 |
--- cmor-3.2.8.orig/Test/test_python_clim_bounds_03.py
|
|
466 |
+++ cmor-3.2.8/Test/test_python_clim_bounds_03.py
|
467 | 467 |
@@ -1,4 +1,5 @@
|
468 | 468 |
#!/usr/bin/env python
|
469 | 469 |
+from __future__ import print_function
|
|
488 | 488 |
|
489 | 489 |
cmor.write(varid, values) # , ntimes_passed=1)
|
490 | 490 |
|
491 | |
Index: cmor-3.2.7/Test/test_python_clim_bounds_04.py
|
492 | |
===================================================================
|
493 | |
--- cmor-3.2.7.orig/Test/test_python_clim_bounds_04.py
|
494 | |
+++ cmor-3.2.7/Test/test_python_clim_bounds_04.py
|
|
491 |
Index: cmor-3.2.8/Test/test_python_clim_bounds_04.py
|
|
492 |
===================================================================
|
|
493 |
--- cmor-3.2.8.orig/Test/test_python_clim_bounds_04.py
|
|
494 |
+++ cmor-3.2.8/Test/test_python_clim_bounds_04.py
|
495 | 495 |
@@ -1,4 +1,5 @@
|
496 | 496 |
#!/usr/bin/env python
|
497 | 497 |
+from __future__ import print_function
|
|
507 | 507 |
axis_id = cmor.axis(**axis)
|
508 | 508 |
axis_ids.append(axis_id)
|
509 | 509 |
|
510 | |
Index: cmor-3.2.7/Test/test_python_YYYMMDDHH_exp_fmt.py
|
511 | |
===================================================================
|
512 | |
--- cmor-3.2.7.orig/Test/test_python_YYYMMDDHH_exp_fmt.py
|
513 | |
+++ cmor-3.2.7/Test/test_python_YYYMMDDHH_exp_fmt.py
|
|
510 |
Index: cmor-3.2.8/Test/test_python_YYYMMDDHH_exp_fmt.py
|
|
511 |
===================================================================
|
|
512 |
--- cmor-3.2.8.orig/Test/test_python_YYYMMDDHH_exp_fmt.py
|
|
513 |
+++ cmor-3.2.8/Test/test_python_YYYMMDDHH_exp_fmt.py
|
514 | 514 |
@@ -1,3 +1,4 @@
|
515 | 515 |
+from __future__ import print_function
|
516 | 516 |
import cmor
|
|
525 | 525 |
|
526 | 526 |
|
527 | 527 |
if __name__ == '__main__':
|
528 | |
Index: cmor-3.2.7/Test/test_python_jamie_10.py
|
529 | |
===================================================================
|
530 | |
--- cmor-3.2.7.orig/Test/test_python_jamie_10.py
|
531 | |
+++ cmor-3.2.7/Test/test_python_jamie_10.py
|
|
528 |
Index: cmor-3.2.8/Test/test_python_jamie_10.py
|
|
529 |
===================================================================
|
|
530 |
--- cmor-3.2.8.orig/Test/test_python_jamie_10.py
|
|
531 |
+++ cmor-3.2.8/Test/test_python_jamie_10.py
|
532 | 532 |
@@ -1,4 +1,5 @@
|
533 | 533 |
#!/usr/bin/env python
|
534 | 534 |
+from __future__ import print_function
|
|
544 | 544 |
axis_id = cmor.axis(**axis)
|
545 | 545 |
axis_ids.append(axis_id)
|
546 | 546 |
|
547 | |
Index: cmor-3.2.7/Test/test_python_jamie_12.py
|
548 | |
===================================================================
|
549 | |
--- cmor-3.2.7.orig/Test/test_python_jamie_12.py
|
550 | |
+++ cmor-3.2.7/Test/test_python_jamie_12.py
|
|
547 |
Index: cmor-3.2.8/Test/test_python_jamie_12.py
|
|
548 |
===================================================================
|
|
549 |
--- cmor-3.2.8.orig/Test/test_python_jamie_12.py
|
|
550 |
+++ cmor-3.2.8/Test/test_python_jamie_12.py
|
551 | 551 |
@@ -1,5 +1,5 @@
|
552 | 552 |
#!/usr/bin/env python
|
553 | 553 |
-
|
|
564 | 564 |
return axis_ids
|
565 | 565 |
|
566 | 566 |
|
567 | |
Index: cmor-3.2.7/Test/test_python_jamie_2.py
|
568 | |
===================================================================
|
569 | |
--- cmor-3.2.7.orig/Test/test_python_jamie_2.py
|
570 | |
+++ cmor-3.2.7/Test/test_python_jamie_2.py
|
|
567 |
Index: cmor-3.2.8/Test/test_python_jamie_2.py
|
|
568 |
===================================================================
|
|
569 |
--- cmor-3.2.8.orig/Test/test_python_jamie_2.py
|
|
570 |
+++ cmor-3.2.8/Test/test_python_jamie_2.py
|
571 | 571 |
@@ -1,3 +1,4 @@
|
572 | 572 |
+from __future__ import print_function
|
573 | 573 |
import cmor
|
|
592 | 592 |
|
593 | 593 |
|
594 | 594 |
if __name__ == '__main__':
|
595 | |
Index: cmor-3.2.7/Test/test_python_jamie_8.py
|
596 | |
===================================================================
|
597 | |
--- cmor-3.2.7.orig/Test/test_python_jamie_8.py
|
598 | |
+++ cmor-3.2.7/Test/test_python_jamie_8.py
|
|
595 |
Index: cmor-3.2.8/Test/test_python_jamie_8.py
|
|
596 |
===================================================================
|
|
597 |
--- cmor-3.2.8.orig/Test/test_python_jamie_8.py
|
|
598 |
+++ cmor-3.2.8/Test/test_python_jamie_8.py
|
599 | 599 |
@@ -1,5 +1,5 @@
|
600 | 600 |
#!/usr/bin/env python
|
601 | 601 |
-
|
|
626 | 626 |
|
627 | 627 |
|
628 | 628 |
def cmor_ini():
|
629 | |
Index: cmor-3.2.7/Test/test_python_jamie_9.py
|
630 | |
===================================================================
|
631 | |
--- cmor-3.2.7.orig/Test/test_python_jamie_9.py
|
632 | |
+++ cmor-3.2.7/Test/test_python_jamie_9.py
|
|
629 |
Index: cmor-3.2.8/Test/test_python_jamie_9.py
|
|
630 |
===================================================================
|
|
631 |
--- cmor-3.2.8.orig/Test/test_python_jamie_9.py
|
|
632 |
+++ cmor-3.2.8/Test/test_python_jamie_9.py
|
633 | 633 |
@@ -1,4 +1,5 @@
|
634 | 634 |
#!/usr/bin/env python
|
635 | 635 |
+from __future__ import print_function
|
|
654 | 654 |
axis_id = cmor.axis(**axis)
|
655 | 655 |
axis_ids.append(axis_id)
|
656 | 656 |
|
657 | |
Index: cmor-3.2.7/Test/test_python_jamie_site_surface.py
|
658 | |
===================================================================
|
659 | |
--- cmor-3.2.7.orig/Test/test_python_jamie_site_surface.py
|
660 | |
+++ cmor-3.2.7/Test/test_python_jamie_site_surface.py
|
|
657 |
Index: cmor-3.2.8/Test/test_python_jamie_site_surface.py
|
|
658 |
===================================================================
|
|
659 |
--- cmor-3.2.8.orig/Test/test_python_jamie_site_surface.py
|
|
660 |
+++ cmor-3.2.8/Test/test_python_jamie_site_surface.py
|
661 | 661 |
@@ -1,3 +1,4 @@
|
662 | 662 |
+from __future__ import print_function
|
663 | 663 |
import cmor
|
|
672 | 672 |
|
673 | 673 |
|
674 | 674 |
if __name__ == '__main__':
|
675 | |
Index: cmor-3.2.7/Test/test_python_joerg_2.py
|
676 | |
===================================================================
|
677 | |
--- cmor-3.2.7.orig/Test/test_python_joerg_2.py
|
678 | |
+++ cmor-3.2.7/Test/test_python_joerg_2.py
|
|
675 |
Index: cmor-3.2.8/Test/test_python_joerg_2.py
|
|
676 |
===================================================================
|
|
677 |
--- cmor-3.2.8.orig/Test/test_python_joerg_2.py
|
|
678 |
+++ cmor-3.2.8/Test/test_python_joerg_2.py
|
679 | 679 |
@@ -1,4 +1,5 @@
|
680 | 680 |
#!/usr/bin/env python
|
681 | 681 |
+from __future__ import print_function
|
|
709 | 709 |
if i == 0:
|
710 | 710 |
mode = cmor.CMOR_REPLACE
|
711 | 711 |
else:
|
712 | |
Index: cmor-3.2.7/Test/test_python_joerg_tim2_clim.py
|
713 | |
===================================================================
|
714 | |
--- cmor-3.2.7.orig/Test/test_python_joerg_tim2_clim.py
|
715 | |
+++ cmor-3.2.7/Test/test_python_joerg_tim2_clim.py
|
|
712 |
Index: cmor-3.2.8/Test/test_python_joerg_tim2_clim.py
|
|
713 |
===================================================================
|
|
714 |
--- cmor-3.2.8.orig/Test/test_python_joerg_tim2_clim.py
|
|
715 |
+++ cmor-3.2.8/Test/test_python_joerg_tim2_clim.py
|
716 | 716 |
@@ -1,4 +1,5 @@
|
717 | 717 |
#!/usr/bin/env python
|
718 | 718 |
+from __future__ import print_function
|
|
734 | 734 |
varid = cmor.variable(var,
|
735 | 735 |
units,
|
736 | 736 |
axis_ids,
|
737 | |
Index: cmor-3.2.7/Test/test_python_memory_check.py
|
738 | |
===================================================================
|
739 | |
--- cmor-3.2.7.orig/Test/test_python_memory_check.py
|
740 | |
+++ cmor-3.2.7/Test/test_python_memory_check.py
|
|
737 |
Index: cmor-3.2.8/Test/test_python_memory_check.py
|
|
738 |
===================================================================
|
|
739 |
--- cmor-3.2.8.orig/Test/test_python_memory_check.py
|
|
740 |
+++ cmor-3.2.8/Test/test_python_memory_check.py
|
741 | 741 |
@@ -5,7 +5,7 @@ Note the memory size from repeated calls
|
742 | 742 |
|
743 | 743 |
Memory stats are taken from http://code.activestate.com/recipes/286222/
|
|
756 | 756 |
|
757 | 757 |
cmor.close(varid)
|
758 | 758 |
|
759 | |
Index: cmor-3.2.7/Test/test_python_reverted_lats.py
|
760 | |
===================================================================
|
761 | |
--- cmor-3.2.7.orig/Test/test_python_reverted_lats.py
|
762 | |
+++ cmor-3.2.7/Test/test_python_reverted_lats.py
|
|
759 |
Index: cmor-3.2.8/Test/test_python_reverted_lats.py
|
|
760 |
===================================================================
|
|
761 |
--- cmor-3.2.8.orig/Test/test_python_reverted_lats.py
|
|
762 |
+++ cmor-3.2.8/Test/test_python_reverted_lats.py
|
763 | 763 |
@@ -1,3 +1,4 @@
|
764 | 764 |
+from __future__ import print_function
|
765 | 765 |
import cmor
|
|
774 | 774 |
|
775 | 775 |
ivar2 = cmor.variable(
|
776 | 776 |
table_entry='tasmin',
|
777 | |
Index: cmor-3.2.7/Test/test_python_stephanie_6hrPlev_minutes.py
|
778 | |
===================================================================
|
779 | |
--- cmor-3.2.7.orig/Test/test_python_stephanie_6hrPlev_minutes.py
|
780 | |
+++ cmor-3.2.7/Test/test_python_stephanie_6hrPlev_minutes.py
|
|
777 |
Index: cmor-3.2.8/Test/test_python_stephanie_6hrPlev_minutes.py
|
|
778 |
===================================================================
|
|
779 |
--- cmor-3.2.8.orig/Test/test_python_stephanie_6hrPlev_minutes.py
|
|
780 |
+++ cmor-3.2.8/Test/test_python_stephanie_6hrPlev_minutes.py
|
781 | 781 |
@@ -1,4 +1,5 @@
|
782 | 782 |
#!/usr/bin/env python
|
783 | 783 |
+from __future__ import print_function
|
|
793 | 793 |
axis_id = cmor.axis(**axis)
|
794 | 794 |
axis_ids.append(axis_id)
|
795 | 795 |
|
796 | |
Index: cmor-3.2.7/Lib/cmor_const.py
|
797 | |
===================================================================
|
798 | |
--- cmor-3.2.7.orig/Lib/cmor_const.py
|
799 | |
+++ cmor-3.2.7/Lib/cmor_const.py
|
|
796 |
Index: cmor-3.2.8/Lib/cmor_const.py
|
|
797 |
===================================================================
|
|
798 |
--- cmor-3.2.8.orig/Lib/cmor_const.py
|
|
799 |
+++ cmor-3.2.8/Lib/cmor_const.py
|
800 | 800 |
@@ -1,4 +1,4 @@
|
801 | 801 |
-import _cmor
|
802 | 802 |
+from . import _cmor
|
803 | 803 |
atts = """
|
804 | 804 |
CMOR_MAX_STRING
|
805 | 805 |
CMOR_MAX_ELEMENTS
|
806 | |
Index: cmor-3.2.7/Lib/__init__.py
|
807 | |
===================================================================
|
808 | |
--- cmor-3.2.7.orig/Lib/__init__.py
|
809 | |
+++ cmor-3.2.7/Lib/__init__.py
|
|
806 |
Index: cmor-3.2.8/Lib/__init__.py
|
|
807 |
===================================================================
|
|
808 |
--- cmor-3.2.8.orig/Lib/__init__.py
|
|
809 |
+++ cmor-3.2.8/Lib/__init__.py
|
810 | 810 |
@@ -4,9 +4,9 @@ xml_pth = os.path.join(sys.prefix, "shar
|
811 | 811 |
if os.path.exists(xml_pth):
|
812 | 812 |
os.environ["UDUNITS2_XML_PATH"] = xml_pth
|
|
827 | 827 |
+ from .check_CMOR_compliant import checkCMOR
|
828 | 828 |
except ImportError:
|
829 | 829 |
pass
|
830 | |
Index: cmor-3.2.7/Src/_cmormodule.c
|
831 | |
===================================================================
|
832 | |
--- cmor-3.2.7.orig/Src/_cmormodule.c
|
833 | |
+++ cmor-3.2.7/Src/_cmormodule.c
|
|
830 |
Index: cmor-3.2.8/Src/_cmormodule.c
|
|
831 |
===================================================================
|
|
832 |
--- cmor-3.2.8.orig/Src/_cmormodule.c
|
|
833 |
+++ cmor-3.2.8/Src/_cmormodule.c
|
834 | 834 |
@@ -3,6 +3,23 @@
|
835 | 835 |
#include "numpy/arrayobject.h"
|
836 | 836 |
#include "cmor.h"
|
|
855 | 855 |
static PyObject *CMORError;
|
856 | 856 |
volatile sig_atomic_t raise_exception = 0;
|
857 | 857 |
char *exception_message = "Problem with 'cmor.%s'. Please check the logfile "
|
858 | |
@@ -399,7 +416,11 @@ static PyObject *PyCMOR_axis(PyObject *
|
|
858 |
@@ -430,7 +447,11 @@ static PyObject *PyCMOR_axis(PyObject *
|
859 | 859 |
char *units;
|
860 | 860 |
char *interval;
|
861 | 861 |
int length;
|
|
868 | 868 |
void *coord_vals;
|
869 | 869 |
void *cell_bounds;
|
870 | 870 |
int cell_bounds_ndim;
|
871 | |
@@ -410,12 +431,18 @@ static PyObject *PyCMOR_axis(PyObject *
|
|
871 |
@@ -441,12 +462,18 @@ static PyObject *PyCMOR_axis(PyObject *
|
872 | 872 |
/************************************************************************/
|
873 | 873 |
/* HUGE assumtion here is that the data is contiguous! */
|
874 | 874 |
/************************************************************************/
|
|
888 | 888 |
if (coords_obj == Py_None) {
|
889 | 889 |
coord_vals = NULL;
|
890 | 890 |
} else {
|
891 | |
@@ -1036,11 +1063,58 @@ static PyMethodDef MyExtractMethods[] =
|
|
891 |
@@ -1067,11 +1094,58 @@ static PyMethodDef MyExtractMethods[] =
|
892 | 892 |
{NULL, NULL} /*sentinel */
|
893 | 893 |
};
|
894 | 894 |
|
|
952 | 952 |
+#endif
|
953 | 953 |
+
|
954 | 954 |
}
|
955 | |
Index: cmor-3.2.7/Test/cmor_speed_and_compression_01.py
|
956 | |
===================================================================
|
957 | |
--- cmor-3.2.7.orig/Test/cmor_speed_and_compression_01.py
|
958 | |
+++ cmor-3.2.7/Test/cmor_speed_and_compression_01.py
|
|
955 |
Index: cmor-3.2.8/Test/cmor_speed_and_compression_01.py
|
|
956 |
===================================================================
|
|
957 |
--- cmor-3.2.8.orig/Test/cmor_speed_and_compression_01.py
|
|
958 |
+++ cmor-3.2.8/Test/cmor_speed_and_compression_01.py
|
959 | 959 |
@@ -1,3 +1,4 @@
|
960 | 960 |
+from __future__ import print_function
|
961 | 961 |
import cmor
|
|
1028 | 1028 |
f = open("summary.txt", "w")
|
1029 | 1029 |
f.write(repr(dic))
|
1030 | 1030 |
f.close()
|
1031 | |
Index: cmor-3.2.7/Lib/convertCSVFile.py
|
1032 | |
===================================================================
|
1033 | |
--- cmor-3.2.7.orig/Lib/convertCSVFile.py
|
1034 | |
+++ cmor-3.2.7/Lib/convertCSVFile.py
|
|
1031 |
Index: cmor-3.2.8/Lib/convertCSVFile.py
|
|
1032 |
===================================================================
|
|
1033 |
--- cmor-3.2.8.orig/Lib/convertCSVFile.py
|
|
1034 |
+++ cmor-3.2.8/Lib/convertCSVFile.py
|
1035 | 1035 |
@@ -1,3 +1,4 @@
|
1036 | 1036 |
+from __future__ import print_function
|
1037 | 1037 |
import csv
|
|
1054 | 1054 |
expt = deleteComa(expt)
|
1055 | 1055 |
-print expt
|
1056 | 1056 |
+print (expt)
|
1057 | |
Index: cmor-3.2.7/Test/test_doc.py
|
1058 | |
===================================================================
|
1059 | |
--- cmor-3.2.7.orig/Test/test_doc.py
|
1060 | |
+++ cmor-3.2.7/Test/test_doc.py
|
|
1057 |
Index: cmor-3.2.8/Test/test_doc.py
|
|
1058 |
===================================================================
|
|
1059 |
--- cmor-3.2.8.orig/Test/test_doc.py
|
|
1060 |
+++ cmor-3.2.8/Test/test_doc.py
|
1061 | 1061 |
@@ -1,3 +1,4 @@
|
1062 | 1062 |
+from __future__ import print_function
|
1063 | 1063 |
import cmor
|
|
1070 | 1070 |
-print "File written: ", outfile
|
1071 | 1071 |
+print ("File written: ", outfile)
|
1072 | 1072 |
cmor.close()
|
1073 | |
Index: cmor-3.2.7/Test/test_non_monotonic_climo_bonds_ok.py
|
1074 | |
===================================================================
|
1075 | |
--- cmor-3.2.7.orig/Test/test_non_monotonic_climo_bonds_ok.py
|
1076 | |
+++ cmor-3.2.7/Test/test_non_monotonic_climo_bonds_ok.py
|
|
1073 |
Index: cmor-3.2.8/Test/test_non_monotonic_climo_bonds_ok.py
|
|
1074 |
===================================================================
|
|
1075 |
--- cmor-3.2.8.orig/Test/test_non_monotonic_climo_bonds_ok.py
|
|
1076 |
+++ cmor-3.2.8/Test/test_non_monotonic_climo_bonds_ok.py
|
1077 | 1077 |
@@ -1,3 +1,4 @@
|
1078 | 1078 |
+from __future__ import print_function
|
1079 | 1079 |
import cmor
|
|
1088 | 1088 |
|
1089 | 1089 |
|
1090 | 1090 |
if __name__ == '__main__':
|
1091 | |
Index: cmor-3.2.7/Test/test_python_polar_stereo.py
|
1092 | |
===================================================================
|
1093 | |
--- cmor-3.2.7.orig/Test/test_python_polar_stereo.py
|
1094 | |
+++ cmor-3.2.7/Test/test_python_polar_stereo.py
|
|
1091 |
Index: cmor-3.2.8/Test/test_python_polar_stereo.py
|
|
1092 |
===================================================================
|
|
1093 |
--- cmor-3.2.8.orig/Test/test_python_polar_stereo.py
|
|
1094 |
+++ cmor-3.2.8/Test/test_python_polar_stereo.py
|
1095 | 1095 |
@@ -1,5 +1,5 @@
|
1096 | 1096 |
#!/usr/bin/env python
|
1097 | 1097 |
-
|
|
1117 | 1117 |
myaxes[2] = grid_id
|
1118 | 1118 |
|
1119 | 1119 |
mapnm = 'polar_stereographic'
|
1120 | |
Index: cmor-3.2.7/Test/test_checker_works.py
|
1121 | |
===================================================================
|
1122 | |
--- cmor-3.2.7.orig/Test/test_checker_works.py
|
1123 | |
+++ cmor-3.2.7/Test/test_checker_works.py
|
|
1120 |
Index: cmor-3.2.8/Test/test_checker_works.py
|
|
1121 |
===================================================================
|
|
1122 |
--- cmor-3.2.8.orig/Test/test_checker_works.py
|
|
1123 |
+++ cmor-3.2.8/Test/test_checker_works.py
|
1124 | 1124 |
@@ -1,7 +1,7 @@
|
1125 | 1125 |
-####
|
1126 | 1126 |
+# --- Test/test_checker_works.pylint(original)0;95;c####
|
|
1149 | 1149 |
pass
|
1150 | 1150 |
else:
|
1151 | 1151 |
raise Exception(
|
1152 | |
Index: cmor-3.2.7/Test/test_python_free_wrapping_issue.py
|
1153 | |
===================================================================
|
1154 | |
--- cmor-3.2.7.orig/Test/test_python_free_wrapping_issue.py
|
1155 | |
+++ cmor-3.2.7/Test/test_python_free_wrapping_issue.py
|
|
1152 |
Index: cmor-3.2.8/Test/test_python_free_wrapping_issue.py
|
|
1153 |
===================================================================
|
|
1154 |
--- cmor-3.2.8.orig/Test/test_python_free_wrapping_issue.py
|
|
1155 |
+++ cmor-3.2.8/Test/test_python_free_wrapping_issue.py
|
1156 | 1156 |
@@ -2,6 +2,7 @@
|
1157 | 1157 |
# Peter Uhe 24 July 2014
|
1158 | 1158 |
# Martin Dix 21 Nov 2014
|
|
1179 | 1179 |
|
1180 | 1180 |
|
1181 | 1181 |
if __name__ == "__main__":
|
1182 | |
Index: cmor-3.2.7/Test/test_python_jamie.py
|
1183 | |
===================================================================
|
1184 | |
--- cmor-3.2.7.orig/Test/test_python_jamie.py
|
1185 | |
+++ cmor-3.2.7/Test/test_python_jamie.py
|
|
1182 |
Index: cmor-3.2.8/Test/test_python_jamie.py
|
|
1183 |
===================================================================
|
|
1184 |
--- cmor-3.2.8.orig/Test/test_python_jamie.py
|
|
1185 |
+++ cmor-3.2.8/Test/test_python_jamie.py
|
1186 | 1186 |
@@ -1,3 +1,4 @@
|
1187 | 1187 |
+from __future__ import print_function
|
1188 | 1188 |
import cmor
|
|
1197 | 1197 |
|
1198 | 1198 |
|
1199 | 1199 |
if __name__ == '__main__':
|
1200 | |
Index: cmor-3.2.7/Test/test_python_joerg_tim2_clim_02.py
|
1201 | |
===================================================================
|
1202 | |
--- cmor-3.2.7.orig/Test/test_python_joerg_tim2_clim_02.py
|
1203 | |
+++ cmor-3.2.7/Test/test_python_joerg_tim2_clim_02.py
|
|
1200 |
Index: cmor-3.2.8/Test/test_python_joerg_tim2_clim_02.py
|
|
1201 |
===================================================================
|
|
1202 |
--- cmor-3.2.8.orig/Test/test_python_joerg_tim2_clim_02.py
|
|
1203 |
+++ cmor-3.2.8/Test/test_python_joerg_tim2_clim_02.py
|
1204 | 1204 |
@@ -1,4 +1,5 @@
|
1205 | 1205 |
#!/usr/bin/env python
|
1206 | 1206 |
+from __future__ import print_function
|
|
1222 | 1222 |
values = values.astype("f")
|
1223 | 1223 |
varid = cmor.variable(var,
|
1224 | 1224 |
units,
|
1225 | |
Index: cmor-3.2.7/Lib/git2svn.py
|
1226 | |
===================================================================
|
1227 | |
--- cmor-3.2.7.orig/Lib/git2svn.py
|
1228 | |
+++ cmor-3.2.7/Lib/git2svn.py
|
|
1225 |
Index: cmor-3.2.8/Lib/git2svn.py
|
|
1226 |
===================================================================
|
|
1227 |
--- cmor-3.2.8.orig/Lib/git2svn.py
|
|
1228 |
+++ cmor-3.2.8/Lib/git2svn.py
|
1229 | 1229 |
@@ -1,3 +1,4 @@
|
1230 | 1230 |
+from __future__ import print_function
|
1231 | 1231 |
import os
|
|
1250 | 1250 |
- print 'svn del :', cmd
|
1251 | 1251 |
+ print ('svn del :', cmd)
|
1252 | 1252 |
os.popen(cmd).readlines()
|
1253 | |
Index: cmor-3.2.7/LibCV/pywrapper.py
|
1254 | |
===================================================================
|
1255 | |
--- cmor-3.2.7.orig/LibCV/pywrapper.py
|
1256 | |
+++ cmor-3.2.7/LibCV/pywrapper.py
|
|
1253 |
Index: cmor-3.2.8/LibCV/pywrapper.py
|
|
1254 |
===================================================================
|
|
1255 |
--- cmor-3.2.8.orig/LibCV/pywrapper.py
|
|
1256 |
+++ cmor-3.2.8/LibCV/pywrapper.py
|
1257 | 1257 |
@@ -5,7 +5,7 @@ Created on Fri Feb 19 11:33:52 2016
|
1258 | 1258 |
@author: Denis Nadeau LLNL, Charles Doutriaux LLNL
|
1259 | 1259 |
'''
|
|
1263 | 1263 |
import numpy
|
1264 | 1264 |
import os
|
1265 | 1265 |
import _cmip6_cv
|
1266 | |
Index: cmor-3.2.7/LibCV/__init__.py
|
1267 | |
===================================================================
|
1268 | |
--- cmor-3.2.7.orig/LibCV/__init__.py
|
1269 | |
+++ cmor-3.2.7/LibCV/__init__.py
|
|
1266 |
Index: cmor-3.2.8/LibCV/__init__.py
|
|
1267 |
===================================================================
|
|
1268 |
--- cmor-3.2.8.orig/LibCV/__init__.py
|
|
1269 |
+++ cmor-3.2.8/LibCV/__init__.py
|
1270 | 1270 |
@@ -1,3 +1,3 @@
|
1271 | 1271 |
-from cmor_const import *
|
1272 | 1272 |
+from .cmor_const import *
|
1273 | 1273 |
|
1274 | 1274 |
-from pywrapper import setup, load_table, set_table, close, set_cur_dataset_attribute, get_cur_dataset_attribute, has_cur_dataset_attribute, set_variable_attribute, list_variable_attributes, get_variable_attribute, has_variable_attribute, check_institution, check_sourceID, check_experiment, check_grids, check_requiredattributes, check_ISOTime, check_furtherinfourl, get_CV_Error, setup_variable, set_CV_Error, check_parentExpID, check_subExpID, check_filename
|
1275 | 1275 |
+from .pywrapper import setup, load_table, set_table, close, set_cur_dataset_attribute, get_cur_dataset_attribute, has_cur_dataset_attribute, set_variable_attribute, list_variable_attributes, get_variable_attribute, has_variable_attribute, check_institution, check_sourceID, check_experiment, check_grids, check_requiredattributes, check_ISOTime, check_furtherinfourl, get_CV_Error, setup_variable, set_CV_Error, check_parentExpID, check_subExpID, check_filename
|
1276 | |
Index: cmor-3.2.7/Test/nc2asc.py
|
1277 | |
===================================================================
|
1278 | |
--- cmor-3.2.7.orig/Test/nc2asc.py
|
1279 | |
+++ cmor-3.2.7/Test/nc2asc.py
|
|
1276 |
Index: cmor-3.2.8/Test/nc2asc.py
|
|
1277 |
===================================================================
|
|
1278 |
--- cmor-3.2.8.orig/Test/nc2asc.py
|
|
1279 |
+++ cmor-3.2.8/Test/nc2asc.py
|
1280 | 1280 |
@@ -1,5 +1,6 @@
|
1281 | 1281 |
#!/usr/bin/env python
|
1282 | 1282 |
|
|
1374 | 1374 |
+print (j, s[-1])
|
1375 | 1375 |
|
1376 | 1376 |
f.close()
|
1377 | |
Index: cmor-3.2.7/Test/test_python_joerg_10.py
|
1378 | |
===================================================================
|
1379 | |
--- cmor-3.2.7.orig/Test/test_python_joerg_10.py
|
1380 | |
+++ cmor-3.2.7/Test/test_python_joerg_10.py
|
|
1377 |
Index: cmor-3.2.8/Test/test_python_joerg_10.py
|
|
1378 |
===================================================================
|
|
1379 |
--- cmor-3.2.8.orig/Test/test_python_joerg_10.py
|
|
1380 |
+++ cmor-3.2.8/Test/test_python_joerg_10.py
|
1381 | 1381 |
@@ -1,4 +1,5 @@
|
1382 | 1382 |
-from test_python_common import * # common subroutines
|
1383 | 1383 |
+from __future__ import print_function
|
|
1429 | 1429 |
cmor.write(
|
1430 | 1430 |
myvars[0],
|
1431 | 1431 |
data2d,
|
1432 | |
Index: cmor-3.2.7/Test/test_python_joerg_11.py
|
1433 | |
===================================================================
|
1434 | |
--- cmor-3.2.7.orig/Test/test_python_joerg_11.py
|
1435 | |
+++ cmor-3.2.7/Test/test_python_joerg_11.py
|
|
1432 |
Index: cmor-3.2.8/Test/test_python_joerg_11.py
|
|
1433 |
===================================================================
|
|
1434 |
--- cmor-3.2.8.orig/Test/test_python_joerg_11.py
|
|
1435 |
+++ cmor-3.2.8/Test/test_python_joerg_11.py
|
1436 | 1436 |
@@ -1,4 +1,5 @@
|
1437 | 1437 |
-from test_python_common import * # common subroutines
|
1438 | 1438 |
+from __future__ import print_function
|
|
1478 | 1478 |
cmor.write(myvars[0], data2d, 1, time_vals=Time[i],
|
1479 | 1479 |
time_bnds=bnds_time[2 * i:2 * i + 2])
|
1480 | 1480 |
cmor.close()
|
1481 | |
Index: cmor-3.2.7/Test/test_python_joerg_12.py
|
1482 | |
===================================================================
|
1483 | |
--- cmor-3.2.7.orig/Test/test_python_joerg_12.py
|
1484 | |
+++ cmor-3.2.7/Test/test_python_joerg_12.py
|
|
1481 |
Index: cmor-3.2.8/Test/test_python_joerg_12.py
|
|
1482 |
===================================================================
|
|
1483 |
--- cmor-3.2.8.orig/Test/test_python_joerg_12.py
|
|
1484 |
+++ cmor-3.2.8/Test/test_python_joerg_12.py
|
1485 | 1485 |
@@ -1,4 +1,5 @@
|
1486 | 1486 |
-from test_python_common import * # common subroutines
|
1487 | 1487 |
+from __future__ import print_function
|
|
1527 | 1527 |
cmor.write(myvars[0], data2d, 1, time_vals=Time[i],
|
1528 | 1528 |
time_bnds=bnds_time[2 * i:2 * i + 2])
|
1529 | 1529 |
cmor.close()
|
1530 | |
Index: cmor-3.2.7/Test/test_python_joerg_9.py
|
1531 | |
===================================================================
|
1532 | |
--- cmor-3.2.7.orig/Test/test_python_joerg_9.py
|
1533 | |
+++ cmor-3.2.7/Test/test_python_joerg_9.py
|
|
1530 |
Index: cmor-3.2.8/Test/test_python_joerg_9.py
|
|
1531 |
===================================================================
|
|
1532 |
--- cmor-3.2.8.orig/Test/test_python_joerg_9.py
|
|
1533 |
+++ cmor-3.2.8/Test/test_python_joerg_9.py
|
1534 | 1534 |
@@ -1,3 +1,4 @@
|
1535 | 1535 |
+from __future__ import print_function
|
1536 | 1536 |
import cmor
|
|
1553 | 1553 |
+ print ('dumped to:', fnm)
|
1554 | 1554 |
|
1555 | 1555 |
cmor.close()
|
1556 | |
Index: cmor-3.2.7/Test/cmor_speed_and_compression_03.py
|
1557 | |
===================================================================
|
1558 | |
--- cmor-3.2.7.orig/Test/cmor_speed_and_compression_03.py
|
1559 | |
+++ cmor-3.2.7/Test/cmor_speed_and_compression_03.py
|
|
1556 |
Index: cmor-3.2.8/Test/cmor_speed_and_compression_03.py
|
|
1557 |
===================================================================
|
|
1558 |
--- cmor-3.2.8.orig/Test/cmor_speed_and_compression_03.py
|
|
1559 |
+++ cmor-3.2.8/Test/cmor_speed_and_compression_03.py
|
1560 | 1560 |
@@ -1,3 +1,4 @@
|
1561 | 1561 |
+from __future__ import print_function
|
1562 | 1562 |
import cmor
|
|
1629 | 1629 |
f = open("summary.txt", "w")
|
1630 | 1630 |
f.write(repr(dic))
|
1631 | 1631 |
f.close()
|
1632 | |
Index: cmor-3.2.7/Test/test_compression.py
|
1633 | |
===================================================================
|
1634 | |
--- cmor-3.2.7.orig/Test/test_compression.py
|
1635 | |
+++ cmor-3.2.7/Test/test_compression.py
|
|
1632 |
Index: cmor-3.2.8/Test/test_compression.py
|
|
1633 |
===================================================================
|
|
1634 |
--- cmor-3.2.8.orig/Test/test_compression.py
|
|
1635 |
+++ cmor-3.2.8/Test/test_compression.py
|
1636 | 1636 |
@@ -1,9 +1,10 @@
|
1637 | 1637 |
+from __future__ import print_function
|
1638 | 1638 |
import sys
|
|
1672 | 1672 |
cmor.write(var_id1, s)
|
1673 | 1673 |
cmor.close(var_id1)
|
1674 | 1674 |
cmor.write(var_id2, s)
|
1675 | |
Index: cmor-3.2.7/Test/test_python_2Gb_file.py
|
1676 | |
===================================================================
|
1677 | |
--- cmor-3.2.7.orig/Test/test_python_2Gb_file.py
|
1678 | |
+++ cmor-3.2.7/Test/test_python_2Gb_file.py
|
|
1675 |
Index: cmor-3.2.8/Test/test_python_2Gb_file.py
|
|
1676 |
===================================================================
|
|
1677 |
--- cmor-3.2.8.orig/Test/test_python_2Gb_file.py
|
|
1678 |
+++ cmor-3.2.8/Test/test_python_2Gb_file.py
|
1679 | 1679 |
@@ -1,4 +1,4 @@
|
1680 | 1680 |
-
|
1681 | 1681 |
+from __future__ import print_function
|
|
1698 | 1698 |
|
1699 | 1699 |
-print 'hello'
|
1700 | 1700 |
+print ('hello')
|
1701 | |
Index: cmor-3.2.7/Test/test_python_2Gb_slice.py
|
1702 | |
===================================================================
|
1703 | |
--- cmor-3.2.7.orig/Test/test_python_2Gb_slice.py
|
1704 | |
+++ cmor-3.2.7/Test/test_python_2Gb_slice.py
|
|
1701 |
Index: cmor-3.2.8/Test/test_python_2Gb_slice.py
|
|
1702 |
===================================================================
|
|
1703 |
--- cmor-3.2.8.orig/Test/test_python_2Gb_slice.py
|
|
1704 |
+++ cmor-3.2.8/Test/test_python_2Gb_slice.py
|
1705 | 1705 |
@@ -1,4 +1,4 @@
|
1706 | 1706 |
-
|
1707 | 1707 |
+from __future__ import print_function
|
|
1746 | 1746 |
|
1747 | 1747 |
-print 'hello'
|
1748 | 1748 |
+print ('hello')
|
1749 | |
Index: cmor-3.2.7/Test/test_python_direct_calls.py
|
1750 | |
===================================================================
|
1751 | |
--- cmor-3.2.7.orig/Test/test_python_direct_calls.py
|
1752 | |
+++ cmor-3.2.7/Test/test_python_direct_calls.py
|
|
1749 |
Index: cmor-3.2.8/Test/test_python_direct_calls.py
|
|
1750 |
===================================================================
|
|
1751 |
--- cmor-3.2.8.orig/Test/test_python_direct_calls.py
|
|
1752 |
+++ cmor-3.2.8/Test/test_python_direct_calls.py
|
1753 | 1753 |
@@ -1,4 +1,5 @@
|
1754 | 1754 |
-from test_python_common import * # common subroutines
|
1755 | 1755 |
+from __future__ import print_function
|
|
1844 | 1844 |
cmor._cmor.write(
|
1845 | 1845 |
myvars[0],
|
1846 | 1846 |
numpy.ravel(data2d),
|
1847 | |
Index: cmor-3.2.7/Test/test_python_grid_and_ocn_sigma.py
|
1848 | |
===================================================================
|
1849 | |
--- cmor-3.2.7.orig/Test/test_python_grid_and_ocn_sigma.py
|
1850 | |
+++ cmor-3.2.7/Test/test_python_grid_and_ocn_sigma.py
|
|
1847 |
Index: cmor-3.2.8/Test/test_python_grid_and_ocn_sigma.py
|
|
1848 |
===================================================================
|
|
1849 |
--- cmor-3.2.8.orig/Test/test_python_grid_and_ocn_sigma.py
|
|
1850 |
+++ cmor-3.2.8/Test/test_python_grid_and_ocn_sigma.py
|
1851 | 1851 |
@@ -1,4 +1,4 @@
|
1852 | 1852 |
-
|
1853 | 1853 |
+from __future__ import print_function
|
|
1953 | 1953 |
cmor.write(ieta,
|
1954 | 1954 |
eta,
|
1955 | 1955 |
1,
|
1956 | |
Index: cmor-3.2.7/Test/test_python_index_coord.py
|
1957 | |
===================================================================
|
1958 | |
--- cmor-3.2.7.orig/Test/test_python_index_coord.py
|
1959 | |
+++ cmor-3.2.7/Test/test_python_index_coord.py
|
|
1956 |
Index: cmor-3.2.8/Test/test_python_index_coord.py
|
|
1957 |
===================================================================
|
|
1958 |
--- cmor-3.2.8.orig/Test/test_python_index_coord.py
|
|
1959 |
+++ cmor-3.2.8/Test/test_python_index_coord.py
|
1960 | 1960 |
@@ -1,3 +1,4 @@
|
1961 | 1961 |
+from __future__ import print_function
|
1962 | 1962 |
import cmor
|
|
1968 | 1968 |
f1 = cmor.close(iv, file_name=True)
|
1969 | 1969 |
-print f1
|
1970 | 1970 |
+print (f1)
|
1971 | |
Index: cmor-3.2.7/Test/test_python_jamie_11.py
|
1972 | |
===================================================================
|
1973 | |
--- cmor-3.2.7.orig/Test/test_python_jamie_11.py
|
1974 | |
+++ cmor-3.2.7/Test/test_python_jamie_11.py
|
|
1971 |
Index: cmor-3.2.8/Test/test_python_jamie_11.py
|
|
1972 |
===================================================================
|
|
1973 |
--- cmor-3.2.8.orig/Test/test_python_jamie_11.py
|
|
1974 |
+++ cmor-3.2.8/Test/test_python_jamie_11.py
|
1975 | 1975 |
@@ -1,4 +1,5 @@
|
1976 | 1976 |
#****** Conflict with 'orog' in formula terms *****
|
1977 | 1977 |
+from __future__ import print_function
|
|
1996 | 1996 |
var3d_ids = cmor.variable(
|
1997 | 1997 |
table_entry='concdust',
|
1998 | 1998 |
units='kg m-3',
|
1999 | |
Index: cmor-3.2.7/Test/test_python_joerg_3.py
|
2000 | |
===================================================================
|
2001 | |
--- cmor-3.2.7.orig/Test/test_python_joerg_3.py
|
2002 | |
+++ cmor-3.2.7/Test/test_python_joerg_3.py
|
|
1999 |
Index: cmor-3.2.8/Test/test_python_joerg_3.py
|
|
2000 |
===================================================================
|
|
2001 |
--- cmor-3.2.8.orig/Test/test_python_joerg_3.py
|
|
2002 |
+++ cmor-3.2.8/Test/test_python_joerg_3.py
|
2003 | 2003 |
@@ -1,3 +1,4 @@
|
2004 | 2004 |
+from __future__ import print_function
|
2005 | 2005 |
import cmor
|
|
2053 | 2053 |
-print cmor.close(ivar1, True)
|
2054 | 2054 |
+print (cmor.close(ivar1, True))
|
2055 | 2055 |
cmor.close()
|
2056 | |
Index: cmor-3.2.7/Test/test_python_joerg_8.py
|
2057 | |
===================================================================
|
2058 | |
--- cmor-3.2.7.orig/Test/test_python_joerg_8.py
|
2059 | |
+++ cmor-3.2.7/Test/test_python_joerg_8.py
|
|
2056 |
Index: cmor-3.2.8/Test/test_python_joerg_8.py
|
|
2057 |
===================================================================
|
|
2058 |
--- cmor-3.2.8.orig/Test/test_python_joerg_8.py
|
|
2059 |
+++ cmor-3.2.8/Test/test_python_joerg_8.py
|
2060 | 2060 |
@@ -1,4 +1,5 @@
|
2061 | 2061 |
-from test_python_common import * # common subroutines
|
2062 | 2062 |
+from __future__ import print_function
|
|
2102 | 2102 |
cmor.write(myvars[0], data2d, 1, time_vals=Time[i],
|
2103 | 2103 |
time_bnds=bnds_time[2 * i:2 * i + 2])
|
2104 | 2104 |
cmor.close()
|
2105 | |
Index: cmor-3.2.7/Test/test_python_max_variables_2.py
|
2106 | |
===================================================================
|
2107 | |
--- cmor-3.2.7.orig/Test/test_python_max_variables_2.py
|
2108 | |
+++ cmor-3.2.7/Test/test_python_max_variables_2.py
|
|
2105 |
Index: cmor-3.2.8/Test/test_python_max_variables_2.py
|
|
2106 |
===================================================================
|
|
2107 |
--- cmor-3.2.8.orig/Test/test_python_max_variables_2.py
|
|
2108 |
+++ cmor-3.2.8/Test/test_python_max_variables_2.py
|
2109 | 2109 |
@@ -1,3 +1,4 @@
|
2110 | 2110 |
+from __future__ import print_function
|
2111 | 2111 |
import cmor
|
|
2125 | 2125 |
else:
|
2126 | 2126 |
ierr = cmor.close(var3d_ids, False, True)
|
2127 | 2127 |
|
2128 | |
Index: cmor-3.2.7/Test/test_python_open_close_cmor_multiple.py
|
2129 | |
===================================================================
|
2130 | |
--- cmor-3.2.7.orig/Test/test_python_open_close_cmor_multiple.py
|
2131 | |
+++ cmor-3.2.7/Test/test_python_open_close_cmor_multiple.py
|
|
2128 |
Index: cmor-3.2.8/Test/test_python_open_close_cmor_multiple.py
|
|
2129 |
===================================================================
|
|
2130 |
--- cmor-3.2.8.orig/Test/test_python_open_close_cmor_multiple.py
|
|
2131 |
+++ cmor-3.2.8/Test/test_python_open_close_cmor_multiple.py
|
2132 | 2132 |
@@ -1,4 +1,4 @@
|
2133 | 2133 |
-
|
2134 | 2134 |
+from __future__ import print_function
|
|
2147 | 2147 |
|
2148 | 2148 |
-print 'hello'
|
2149 | 2149 |
+print ('hello')
|
2150 | |
Index: cmor-3.2.7/Test/test_python_singleton_anywhere_in_table_def.py
|
2151 | |
===================================================================
|
2152 | |
--- cmor-3.2.7.orig/Test/test_python_singleton_anywhere_in_table_def.py
|
2153 | |
+++ cmor-3.2.7/Test/test_python_singleton_anywhere_in_table_def.py
|
|
2150 |
Index: cmor-3.2.8/Test/test_python_singleton_anywhere_in_table_def.py
|
|
2151 |
===================================================================
|
|
2152 |
--- cmor-3.2.8.orig/Test/test_python_singleton_anywhere_in_table_def.py
|
|
2153 |
+++ cmor-3.2.8/Test/test_python_singleton_anywhere_in_table_def.py
|
2154 | 2154 |
@@ -1,6 +1,6 @@
|
2155 | 2155 |
#!/usr/bin/env python
|
2156 | 2156 |
-
|
|
2190 | 2190 |
- print 'wrote'
|
2191 | 2191 |
+ print ('wrote')
|
2192 | 2192 |
cmor.close()
|
2193 | |
Index: cmor-3.2.7/Test/test_python_singleton_string.py
|
2194 | |
===================================================================
|
2195 | |
--- cmor-3.2.7.orig/Test/test_python_singleton_string.py
|
2196 | |
+++ cmor-3.2.7/Test/test_python_singleton_string.py
|
|
2193 |
Index: cmor-3.2.8/Test/test_python_singleton_string.py
|
|
2194 |
===================================================================
|
|
2195 |
--- cmor-3.2.8.orig/Test/test_python_singleton_string.py
|
|
2196 |
+++ cmor-3.2.8/Test/test_python_singleton_string.py
|
2197 | 2197 |
@@ -1,6 +1,6 @@
|
2198 | 2198 |
#!/usr/bin/env python
|
2199 | 2199 |
-
|
|
2234 | 2234 |
- print 'wrote'
|
2235 | 2235 |
+ print ('wrote')
|
2236 | 2236 |
cmor.close()
|
2237 | |
Index: cmor-3.2.7/Test/test_python_user_interface_01.py
|
2238 | |
===================================================================
|
2239 | |
--- cmor-3.2.7.orig/Test/test_python_user_interface_01.py
|
2240 | |
+++ cmor-3.2.7/Test/test_python_user_interface_01.py
|
|
2237 |
Index: cmor-3.2.8/Test/test_python_user_interface_01.py
|
|
2238 |
===================================================================
|
|
2239 |
--- cmor-3.2.8.orig/Test/test_python_user_interface_01.py
|
|
2240 |
+++ cmor-3.2.8/Test/test_python_user_interface_01.py
|
2241 | 2241 |
@@ -1,4 +1,5 @@
|
2242 | 2242 |
-from test_python_common import * # common subroutines
|
2243 | 2243 |
+from __future__ import print_function
|
|
2274 | 2274 |
cmor.write(myvars[0], data2d, 1, time_vals=Time[i],
|
2275 | 2275 |
time_bnds=bnds_time[2 * i:2 * i + 2])
|
2276 | 2276 |
cmor.close()
|
2277 | |
Index: cmor-3.2.7/Test/test_python_user_interface_03.py
|
2278 | |
===================================================================
|
2279 | |
--- cmor-3.2.7.orig/Test/test_python_user_interface_03.py
|
2280 | |
+++ cmor-3.2.7/Test/test_python_user_interface_03.py
|
|
2277 |
Index: cmor-3.2.8/Test/test_python_user_interface_03.py
|
|
2278 |
===================================================================
|
|
2279 |
--- cmor-3.2.8.orig/Test/test_python_user_interface_03.py
|
|
2280 |
+++ cmor-3.2.8/Test/test_python_user_interface_03.py
|
2281 | 2281 |
@@ -1,13 +1,14 @@
|
2282 | 2282 |
+from __future__ import print_function
|
2283 | 2283 |
import numpy
|
|
2333 | 2333 |
# cmor.close()
|
2334 | 2334 |
-print 'Finito'
|
2335 | 2335 |
+print ('Finito')
|
2336 | |
Index: cmor-3.2.7/Test/cmor_speed_and_compression.py
|
2337 | |
===================================================================
|
2338 | |
--- cmor-3.2.7.orig/Test/cmor_speed_and_compression.py
|
2339 | |
+++ cmor-3.2.7/Test/cmor_speed_and_compression.py
|
|
2336 |
Index: cmor-3.2.8/Test/cmor_speed_and_compression.py
|
|
2337 |
===================================================================
|
|
2338 |
--- cmor-3.2.8.orig/Test/cmor_speed_and_compression.py
|
|
2339 |
+++ cmor-3.2.8/Test/cmor_speed_and_compression.py
|
2340 | 2340 |
@@ -1,3 +1,4 @@
|
2341 | 2341 |
+from __future__ import print_function
|
2342 | 2342 |
import cmor
|
|
2408 | 2408 |
f = open("summary.txt", "w")
|
2409 | 2409 |
f.write(repr(dic))
|
2410 | 2410 |
f.close()
|
2411 | |
Index: cmor-3.2.7/Test/cmor_speed_and_compression_02.py
|
2412 | |
===================================================================
|
2413 | |
--- cmor-3.2.7.orig/Test/cmor_speed_and_compression_02.py
|
2414 | |
+++ cmor-3.2.7/Test/cmor_speed_and_compression_02.py
|
|
2411 |
Index: cmor-3.2.8/Test/cmor_speed_and_compression_02.py
|
|
2412 |
===================================================================
|
|
2413 |
--- cmor-3.2.8.orig/Test/cmor_speed_and_compression_02.py
|
|
2414 |
+++ cmor-3.2.8/Test/cmor_speed_and_compression_02.py
|
2415 | 2415 |
@@ -1,3 +1,4 @@
|
2416 | 2416 |
+from __future__ import print_function
|
2417 | 2417 |
import cmor
|
|
2501 | 2501 |
f = open("summary.txt", "w")
|
2502 | 2502 |
f.write(repr(dic))
|
2503 | 2503 |
f.close()
|
2504 | |
Index: cmor-3.2.7/Test/test_python_jamie_6.py
|
2505 | |
===================================================================
|
2506 | |
--- cmor-3.2.7.orig/Test/test_python_jamie_6.py
|
2507 | |
+++ cmor-3.2.7/Test/test_python_jamie_6.py
|
|
2504 |
Index: cmor-3.2.8/Test/test_python_jamie_6.py
|
|
2505 |
===================================================================
|
|
2506 |
--- cmor-3.2.8.orig/Test/test_python_jamie_6.py
|
|
2507 |
+++ cmor-3.2.8/Test/test_python_jamie_6.py
|
2508 | 2508 |
@@ -1,3 +1,4 @@
|
2509 | 2509 |
+from __future__ import print_function
|
2510 | 2510 |
import cmor
|
|
2519 | 2519 |
ilev = cmor.axis(
|
2520 | 2520 |
table_entry='standard_sigma',
|
2521 | 2521 |
units='1',
|
2522 | |
Index: cmor-3.2.7/Test/test_python_user_interface_00.py
|
2523 | |
===================================================================
|
2524 | |
--- cmor-3.2.7.orig/Test/test_python_user_interface_00.py
|
2525 | |
+++ cmor-3.2.7/Test/test_python_user_interface_00.py
|
|
2522 |
Index: cmor-3.2.8/Test/test_python_user_interface_00.py
|
|
2523 |
===================================================================
|
|
2524 |
--- cmor-3.2.8.orig/Test/test_python_user_interface_00.py
|
|
2525 |
+++ cmor-3.2.8/Test/test_python_user_interface_00.py
|
2526 | 2526 |
@@ -1,4 +1,5 @@
|
2527 | 2527 |
-from test_python_common import * # common subroutines
|
2528 | 2528 |
+from __future__ import print_function
|
|
2616 | 2616 |
cmor.write(myvars[0], data2d, 1)
|
2617 | 2617 |
|
2618 | 2618 |
cmor.close()
|
2619 | |
Index: cmor-3.2.7/Src/_controlvocabulary.c
|
2620 | |
===================================================================
|
2621 | |
--- cmor-3.2.7.orig/Src/_controlvocabulary.c
|
2622 | |
+++ cmor-3.2.7/Src/_controlvocabulary.c
|
|
2619 |
Index: cmor-3.2.8/Src/_controlvocabulary.c
|
|
2620 |
===================================================================
|
|
2621 |
--- cmor-3.2.8.orig/Src/_controlvocabulary.c
|
|
2622 |
+++ cmor-3.2.8/Src/_controlvocabulary.c
|
2623 | 2623 |
@@ -633,8 +633,52 @@ static PyMethodDef MyExtractMethods[] =
|
2624 | 2624 |
{NULL, NULL} /*sentinel */
|
2625 | 2625 |
};
|
|
2674 | 2674 |
+ return module;
|
2675 | 2675 |
+#endif
|
2676 | 2676 |
}
|
2677 | |
Index: cmor-3.2.7/LibCV/PrePARE/PrePARE.py
|
2678 | |
===================================================================
|
2679 | |
--- cmor-3.2.7.orig/LibCV/PrePARE/PrePARE.py
|
2680 | |
+++ cmor-3.2.7/LibCV/PrePARE/PrePARE.py
|
|
2677 |
Index: cmor-3.2.8/LibCV/PrePARE/PrePARE.py
|
|
2678 |
===================================================================
|
|
2679 |
--- cmor-3.2.8.orig/LibCV/PrePARE/PrePARE.py
|
|
2680 |
+++ cmor-3.2.8/LibCV/PrePARE/PrePARE.py
|
2681 | 2681 |
@@ -16,6 +16,7 @@ Created on Fri Feb 19 11:33:52 2016
|
2682 | 2682 |
|
2683 | 2683 |
@author: Denis Nadeau LLNL
|
|
2816 | 2816 |
# Verify that attribute value is equal to file attribute
|
2817 | 2817 |
table_value = prepLIST[key]
|
2818 | 2818 |
file_value = self.dictVars[key]
|
2819 | |
@@ -350,12 +351,12 @@ class checkCMIP6(object):
|
|
2819 |
@@ -354,12 +355,12 @@ class checkCMIP6(object):
|
2820 | 2820 |
file_value = str(file_value)
|
2821 | 2821 |
table_value = str(table_value)
|
2822 | 2822 |
if table_value != file_value:
|
|
2835 | 2835 |
cmip6_cv.set_CV_Error()
|
2836 | 2836 |
else:
|
2837 | 2837 |
# That attribute is not in the file
|
2838 | |
@@ -367,20 +368,20 @@ class checkCMIP6(object):
|
|
2838 |
@@ -371,20 +372,20 @@ class checkCMIP6(object):
|
2839 | 2839 |
table_value = table_value[0]
|
2840 | 2840 |
if isinstance(table_value, float):
|
2841 | 2841 |
table_value = "{0:.2g}".format(table_value)
|
|
2866 | 2866 |
|
2867 | 2867 |
|
2868 | 2868 |
# =========================
|
2869 | |
@@ -411,7 +412,7 @@ def main():
|
|
2869 |
@@ -415,7 +416,7 @@ def main():
|
2870 | 2870 |
try:
|
2871 | 2871 |
args = parser.parse_args()
|
2872 | 2872 |
except argparse.ArgumentTypeError as errmsg:
|
|
2875 | 2875 |
return 1
|
2876 | 2876 |
except SystemExit:
|
2877 | 2877 |
return 1
|
2878 | |
@@ -420,12 +421,12 @@ def main():
|
|
2878 |
@@ -424,12 +425,12 @@ def main():
|
2879 | 2879 |
process = checkCMIP6(args)
|
2880 | 2880 |
process.ControlVocab()
|
2881 | 2881 |
except KeyboardInterrupt:
|
|
2894 | 2894 |
sys.exit(-1)
|
2895 | 2895 |
# process.checkActivities()
|
2896 | 2896 |
return(0)
|
2897 | |
@@ -436,12 +437,12 @@ if(__name__ == '__main__'):
|
|
2897 |
@@ -440,12 +441,12 @@ if(__name__ == '__main__'):
|
2898 | 2898 |
sys.exit(main())
|
2899 | 2899 |
|
2900 | 2900 |
except KeyboardInterrupt:
|
|
2913 | 2913 |
sys.exit(-1)
|
2914 | 2914 |
except BaseException:
|
2915 | 2915 |
sys.exit(-1)
|
2916 | |
Index: cmor-3.2.7/Test/test_chunking.py
|
2917 | |
===================================================================
|
2918 | |
--- cmor-3.2.7.orig/Test/test_chunking.py
|
2919 | |
+++ cmor-3.2.7/Test/test_chunking.py
|
|
2916 |
Index: cmor-3.2.8/Test/test_chunking.py
|
|
2917 |
===================================================================
|
|
2918 |
--- cmor-3.2.8.orig/Test/test_chunking.py
|
|
2919 |
+++ cmor-3.2.8/Test/test_chunking.py
|
2920 | 2920 |
@@ -1,3 +1,4 @@
|
2921 | 2921 |
+from __future__ import print_function
|
2922 | 2922 |
import cmor
|
|
2940 | 2940 |
|
2941 | 2941 |
|
2942 | 2942 |
# read in data, just one slice
|
2943 | |
Index: cmor-3.2.7/Test/test_python_sos_psu_units.py
|
2944 | |
===================================================================
|
2945 | |
--- cmor-3.2.7.orig/Test/test_python_sos_psu_units.py
|
2946 | |
+++ cmor-3.2.7/Test/test_python_sos_psu_units.py
|
|
2943 |
Index: cmor-3.2.8/Test/test_python_sos_psu_units.py
|
|
2944 |
===================================================================
|
|
2945 |
--- cmor-3.2.8.orig/Test/test_python_sos_psu_units.py
|
|
2946 |
+++ cmor-3.2.8/Test/test_python_sos_psu_units.py
|
2947 | 2947 |
@@ -1,3 +1,4 @@
|
2948 | 2948 |
+from __future__ import print_function
|
2949 | 2949 |
import cmor
|