'Verify that the values passed to compute_chunk are well-formed.'

def _validate_compute_chunk_params(self, dates, assets, initial_workspace):

    root = self._root_mask_term
    clsname = type(self).__name__
    compute_chunk_name = self.compute_chunk.__name__
    if (root not in initial_workspace):
        raise AssertionError('root_mask    values    not    supplied    to    {cls}.{method}'.format(cls=clsname, method=compute_chunk_name))
    shape = initial_workspace[root].shape
    implied_shape = (len(dates), len(assets))
    if (shape != implied_shape):
        raise AssertionError('root_mask    shape    is    {shape},    but    received    dates/assets    imply    that    shape    should    be    {implied}'.format(shape=shape, implied=implied_shape))
