get_density#
- mrinufft.density.get_density(method_name, *args, **kwargs)[source]#
Get the density function from its name.
Available methods are:
Key
Function
"voronoi""cell_count""pipe"- Parameters:
method_name (str) – The name of the method to retrieve.
*args – Arguments to pass to the method if it is callable.
**kwargs – Arguments to pass to the method if it is callable.
- Returns:
The method corresponding to the given name, or the result of calling it with the
provided arguments.
- Raises:
ValueError – If the method name is not found in the registry.