File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 11jobs :
22- job : macOS
3- displayName : macOS-10.14
3+ displayName : macOS-10.15
44 pool :
5- vmImage : ' macOS-10.14 '
5+ vmImage : ' macOS-10.15 '
66 strategy :
77 matrix :
88 Python36 :
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ requirements:
2828 - fftw
2929 - hdf5 * mpi_* # [py>36]
3030 - h5py * mpi_* # [py>36]
31- - netcdf4 * mpi_*
31+ - netcdf4 * mpi_* # [py>36]
3232
3333test :
3434 requires :
Original file line number Diff line number Diff line change @@ -33,14 +33,17 @@ def test_2Darray():
3333 assert a0 .rank == rank - 1
3434 aa = a .v
3535 assert isinstance (aa , np .ndarray )
36- k = a .get ((0 ,)* rank + (0 , slice (None )))
37- if comm .Get_rank () == 0 :
38- assert len (k ) == N [1 ]
39- assert np .sum (k ) == N [1 ]
40- k = a .get ((0 ,)* rank + (slice (None ), 0 ))
41- if comm .Get_rank () == 0 :
42- assert len (k ) == N [0 ]
43- assert np .sum (k ) == N [0 ]
36+ try :
37+ k = a .get ((0 ,)* rank + (0 , slice (None )))
38+ if comm .Get_rank () == 0 :
39+ assert len (k ) == N [1 ]
40+ assert np .sum (k ) == N [1 ]
41+ k = a .get ((0 ,)* rank + (slice (None ), 0 ))
42+ if comm .Get_rank () == 0 :
43+ assert len (k ) == N [0 ]
44+ assert np .sum (k ) == N [0 ]
45+ except ModuleNotFoundError :
46+ pass
4447 _ = a .local_slice ()
4548 newaxis = (a .alignment + 1 )% 2
4649 _ = a .get_pencil_and_transfer (newaxis )
You can’t perform that action at this time.
0 commit comments