Functions
get_file_slice (sizes, start, stop) |
Return the list of file numbers that must be accessed |
get_slice_size (start, stop, step) |
Utility function to return the size of an array slice |
global_to_local_slice (sizes, start, stop, fnum) |
Convert a global slice, specified by start and stop |
nbodykit.io.tools.
get_file_slice
(sizes, start, stop)[source]¶Return the list of file numbers that must be accessed to return data between start and slice, where these indices are defined in terms of the global catalog indexing
Parameters: | |
---|---|
Returns: | fnums – the list of integers specifying the relevant file numbers that must be accessed |
Return type: | list |
nbodykit.io.tools.
get_slice_size
(start, stop, step)[source]¶Utility function to return the size of an array slice
Parameters: | |
---|---|
Returns: | N – the total size of the slice |
Return type: |