sidpy.base.num_utilsΒΆ

Utilities that assist in writing scientific data to HDF5 files

Created on Thu Sep 7 21:14:25 2017

@author: Suhas Somnath, Chris Smith

Functions

build_ind_val_matrices

Builds indices and values matrices using given unit values for each dimension.

contains_integers

Checks if the provided object is iterable (list, tuple etc.) and contains integers optionally greater than equal to the provided min_val

get_exponent

Gets the scale / exponent for a sequence of numbers.

get_slope

Attempts to get the slope of the provided values.

integers_to_slices

Converts a sequence of iterables to a list of slice objects denoting sequences of consecutive numbers

to_ranges

Converts a sequence of iterables to range tuples