aboutsummaryrefslogtreecommitdiff
path: root/Tools/read_raw_data.py
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-15 10:44:19 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-15 10:44:19 -0700
commit459e23a19b3746fc43b4c6421f9d0dde8a46c8ec (patch)
tree1d4bef00e86928d2e983836636691e30a8b694eb /Tools/read_raw_data.py
parent3bcdf0dde67e9d4042a04d3f90e4d8a69dd821c2 (diff)
downloadWarpX-459e23a19b3746fc43b4c6421f9d0dde8a46c8ec.tar.gz
WarpX-459e23a19b3746fc43b4c6421f9d0dde8a46c8ec.tar.zst
WarpX-459e23a19b3746fc43b4c6421f9d0dde8a46c8ec.zip
update read_raw_data to avoid warning for deprecated Python syntax
Diffstat (limited to 'Tools/read_raw_data.py')
-rw-r--r--Tools/read_raw_data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/read_raw_data.py b/Tools/read_raw_data.py
index bca14b582..363c3a007 100644
--- a/Tools/read_raw_data.py
+++ b/Tools/read_raw_data.py
@@ -312,7 +312,7 @@ def _read_buffer(snapshot, header_fn, _component_names):
for i in range(header.ncomp):
comp_data = arr[i*size:(i+1)*size].reshape(shape, order='F')
data = all_data[_component_names[i]]
- data[[slice(l,h+1) for l, h in zip(lo, hi)]] = comp_data
+ data[tuple([slice(l,h+1) for l, h in zip(lo, hi)])] = comp_data
all_data[_component_names[i]] = data
return all_data