diff options
author | 2019-08-21 15:00:21 -0700 | |
---|---|---|
committer | 2019-08-21 15:00:21 -0700 | |
commit | 9eec7ac1a042b28cfad1eebf13c2047674e8505f (patch) | |
tree | 0df9579c0a627c067d83522a6964e2df08ce8771 /Tools/read_raw_data.py | |
parent | d5fc8e40d0373bd4ba1e306f4ce5dc0a895ba6e7 (diff) | |
parent | 4dd5eff33030882d4f7168e0223b65533f8b6fbd (diff) | |
download | WarpX-9eec7ac1a042b28cfad1eebf13c2047674e8505f.tar.gz WarpX-9eec7ac1a042b28cfad1eebf13c2047674e8505f.tar.zst WarpX-9eec7ac1a042b28cfad1eebf13c2047674e8505f.zip |
merging with dev
Diffstat (limited to 'Tools/read_raw_data.py')
-rw-r--r-- | Tools/read_raw_data.py | 2 |
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 |