# Path: dynts/exc.py
# class ExpressionError(DyntsException):
#     '''A :class:`DyntsException` exception raised when errors occur during
# dsl language translation.
#     '''


import numpy as np
from ..exc import ExpressionError

    fill = _toVec(shape, fill_fn())
    return fill


def op_scalar_ts(op_name, op, scalar, ts, fill_fn):
    fill_vec = _create_fill_vec(ts, fill_fn)
    values = ts.values()
    shape = values.shape
    v2 = _toVec(shape, scalar)

    dts = ts.dates()
    result = applyfn(op, v2, values, fill_vec)
    return dts, result


def op_ts_scalar(op_name, op, ts, scalar, fill_fn):
    values = ts.values()
    if values is not None:
        fill_vec = _create_fill_vec(ts, fill_fn)
        shape = values.shape
        v2 = _toVec(shape, scalar)
        dts = ts.dates()
        result = applyfn(op, values, v2, fill_vec)
        return dts, result
    else:
        return None, None


def op_ts_ts(op_name, op, ts, ts2, all, fill_fn):
    if ts.count() != ts2.count():

# Path: dynts/exc.py
# class ExpressionError(DyntsException):
#     '''A :class:`DyntsException` exception raised when errors occur during
# dsl language translation.
#     '''


# Path: dynts/api/operators.py
import numpy as np
from ..exc import ExpressionError

    fill = _toVec(shape, fill_fn())
    return fill


def op_scalar_ts(op_name, op, scalar, ts, fill_fn):
    fill_vec = _create_fill_vec(ts, fill_fn)
    values = ts.values()
    shape = values.shape
    v2 = _toVec(shape, scalar)

    dts = ts.dates()
    result = applyfn(op, v2, values, fill_vec)
    return dts, result


def op_ts_scalar(op_name, op, ts, scalar, fill_fn):
    values = ts.values()
    if values is not None:
        fill_vec = _create_fill_vec(ts, fill_fn)
        shape = values.shape
        v2 = _toVec(shape, scalar)
        dts = ts.dates()
        result = applyfn(op, values, v2, fill_vec)
        return dts, result
    else:
        return None, None


def op_ts_ts(op_name, op, ts, ts2, all, fill_fn):
    if ts.count() != ts2.count():

        raise ExpressionError(
