mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-06 12:50:40 +02:00
12 lines
309 B
Python
12 lines
309 B
Python
|
|
|
|
from ._aare import ClusterVector_Cluster3x3i
|
|
import numpy as np
|
|
|
|
def ClusterVector(cluster_size, dtype = np.int32):
|
|
|
|
if dtype == np.int32 and cluster_size == (3,3):
|
|
return ClusterVector_Cluster3x3i()
|
|
else:
|
|
raise ValueError(f"Unsupported dtype: {dtype}. Only np.int32 is supported.")
|