datar.core.utils
module
datar.core.utils
Utilities for datar
Classes
NotImplementedByCurrentBackendError
— Raised when a function is not implemented by the current backend</>CollectionFunction
— Enables c[1:3] to be interpreted as 1:3</>
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
__getitem__
(
item
)
— Allow c[1:3] to be interpreted as 1:3</>with_backend
(
backend
)
— Set the backend for c[]</>
function
datar.core.utils.
arg_match
(
arg
, argname
, values
, errmsg=None
)
Make sure arg is in one of the values.
Mimics rlang::arg_match
.