pynbody.util.indexing_tricks.chained_slice

Contents

pynbody.util.indexing_tricks.chained_slice#

pynbody.util.indexing_tricks.chained_slice(s1, s2)[source]#

Return a slice s3 with the property that ar[s1][s2] == ar[s3]