mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-01-01 01:41:29 +01:00
- added rosenblatttransform - added 3x3 eta methods - interpolation can be used with various eta functions - added documentation for interpolation, eta calculation - exposed full eta struct in python - disable ClusterFinder for 2x2 clusters - factory function for ClusterVector --------- Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch> Co-authored-by: Erik Fröjdh <erik.frojdh@psi.ch>
22 lines
494 B
Python
22 lines
494 B
Python
|
|
|
|
from . import _aare
|
|
import numpy as np
|
|
from .ClusterFinder import _get_class
|
|
|
|
def ClusterVector(cluster_size=(3,3), dtype = np.int32):
|
|
"""
|
|
Factory function to create a ClusterVector object. Provides a cleaner syntax for
|
|
the templated ClusterVector in C++.
|
|
|
|
.. code-block:: python
|
|
|
|
from aare import ClusterVector
|
|
|
|
ClusterVector(cluster_size=(3,3), dtype=np.float64)
|
|
"""
|
|
|
|
cls = _get_class("ClusterVector", cluster_size, dtype)
|
|
return cls()
|
|
|