moten.utils module

Help functions.

class moten.utils.DotDict(*args, **kwargs)[source]

Bases: dict

A dictionary with dot syntax.

copy()[source]
moten.utils.iterator_func(*args, **kwargs)[source]

If available, show iteration progress with tqdm.

moten.utils.log_compress(x, offset=1e-05)[source]

Computes \(log(x + \epsilon)\)

moten.utils.pointwise_square(data)[source]

Computes \(x^2\)

moten.utils.sqrt_sum_squares(x, y)[source]

Computes \((x^2 + y^2)^{1/2}\)