Skip to content

datar.core.utils

module

datar.core.utils

Utilities for datar

Classes
Functions
  • arg_match(arg, argname, values, errmsg) Make sure arg is in one of the values.</>
class

datar.core.utils.NotImplementedByCurrentBackendError(func, data=None)

Bases
NotImplementedError RuntimeError Exception BaseException

Raised when a function is not implemented by the current backend

class

datar.core.utils.CollectionFunction(c_func)

Enables c[1:3] to be interpreted as 1:3

Methods
generator

with_backend(backend)

Set the backend for c[]

method

__getitem__(item)

Allow c[1:3] to be interpreted as 1:3

function

datar.core.utils.arg_match(arg, argname, values, errmsg=None)

Make sure arg is in one of the values.

Mimics rlang::arg_match.