-
Notifications
You must be signed in to change notification settings - Fork 0
/
core.py
40 lines (26 loc) · 1.14 KB
/
core.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- coding: utf-8 -*-
"""
The module ``core`` provides support for working with ``slice``\ s.
===============================================================================
Overview
===============================================================================
The module ``core`` provides several functions that are useful for working
with a Python ``slice`` or ``tuple`` of ``slice``\ s. This is of particular
value when working with NumPy_.
.. _NumPy: http://www.numpy.org/
===============================================================================
API
===============================================================================
"""
from __future__ import absolute_import
__author__ = "John Kirkham <kirkhamj@janelia.hhmi.org>"
__date__ = "$Dec 08, 2016 11:35:58 GMT-0500$"
import kenjutsu.divide
import kenjutsu.format
import kenjutsu.measure
reformat_slice = kenjutsu.format.reformat_slice
reformat_slices = kenjutsu.format.reformat_slices
UnknownSliceLengthException = kenjutsu.measure.UnknownSliceLengthException
len_slice = kenjutsu.measure.len_slice
len_slices = kenjutsu.measure.len_slices
split_blocks = kenjutsu.divide.split_blocks