File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 16
16
- DEPENDS="numpy scipy matplotlib h5py pillow pydicom indexed_gzip"
17
17
- INSTALL_TYPE="setup"
18
18
- CHECK_TYPE="test"
19
- - EXTRA_WHEELS="https://3f23b170c54c2533c070-1c8a9b3114517dc5fe17b7c3f8c63a43.ssl.cf2.rackcdn.com"
20
19
- NIGHTLY_WHEELS="https://pypi.anaconda.org/scipy-wheels-nightly/simple"
21
- - EXTRA_PIP_FLAGS="--find-links=$EXTRA_WHEELS"
22
- - PRE_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --extra-index-url $NIGHTLY_WHEELS"
20
+ - PRE_PIP_FLAGS="--pre --extra-index-url $NIGHTLY_WHEELS"
23
21
24
22
python :
25
23
- 3.7
30
28
- arch : arm64
31
29
python : 3.6
32
30
env :
33
- - DEPENDS="numpy"
31
+ - DEPENDS="numpy scipy pillow pydicom "
34
32
- EXTRA_PIP_FLAGS="$PRE_PIP_FLAGS"
35
33
# Basic dependencies only
36
34
- python : 3.6
62
60
- python : 3.8
63
61
env :
64
62
- EXTRA_PIP_FLAGS="$PRE_PIP_FLAGS"
63
+ # test 3.9 against pre-release builds of numpy
64
+ - python : 3.9
65
+ env :
66
+ - DEPENDS="numpy"
67
+ - EXTRA_PIP_FLAGS="$PRE_PIP_FLAGS"
65
68
# OSX Python support is basically accidental. Take whatever version we can
66
69
# get and test with full dependencies...
67
70
- os : osx
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ class netcdf_file(object):
219
219
220
220
>>> data = time[:]
221
221
>>> data.base.base # doctest: +ELLIPSIS
222
- <mmap.mmap object at 0x ...>
222
+ <mmap.mmap ...>
223
223
224
224
If the data is to be processed after the file is closed, it needs
225
225
to be copied to main memory:
Original file line number Diff line number Diff line change @@ -89,7 +89,10 @@ def assign2atoms(assign_ast, default_class=int):
89
89
target = target .value
90
90
prev_target_type = OrderedDict
91
91
elif isinstance (target , ast .Subscript ):
92
- index = target .slice .value .n
92
+ if isinstance (target .slice , ast .Constant ): # PY39
93
+ index = target .slice .n
94
+ else : # PY38
95
+ index = target .slice .value .n
93
96
atoms .append (Atom (target , prev_target_type , index ))
94
97
target = target .value
95
98
prev_target_type = list
You can’t perform that action at this time.
0 commit comments