Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 28 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ from spyral import (
FribParameters,
DetectorParameters,
ClusterParameters,
OverlapJoinParameters,
HdbscanParameters,
TripclustParameters,
OverlapJoinParameters,
ContinuityJoinParameters,
SolverParameters,
EstimateParameters,
DEFAULT_MAP,
Expand Down Expand Up @@ -105,12 +107,12 @@ det_params = DetectorParameters(

cluster_params = ClusterParameters(
min_cloud_size=50,
hdbscan_parameters = None,
# hdbscan_parameters = HdbscanParameters(
# min_points=3,
# min_size_scale_factor=0.03,
# min_size_lower_cutoff=10,
# cluster_selection_epsilon=10.0),
# hdbscan_parameters = None,
hdbscan_parameters = HdbscanParameters(
min_points=3,
min_size_scale_factor=0.03,
min_size_lower_cutoff=10,
cluster_selection_epsilon=10.0),
# overlap_join=OverlapJoinParameters(
# min_cluster_size_join=15,
# circle_overlap_ratio=0.25,
Expand All @@ -122,25 +124,25 @@ cluster_params = ClusterParameters(
overlap_join=None,
outlier_scale_factor=0.1,
direction_threshold=0.5,
# tripclust_parameters=None,
tripclust_parameters=TripclustParameters(
r=6,
rdnn=True,
k=12,
n=3,
a=0.03,
s=0.3,
sdnn=True,
t=0.0,
tauto=True,
dmax=0.0,
dmax_dnn=False,
ordered=True,
link=0,
m=50,
postprocess=False,
min_depth=25,
),
tripclust_parameters=None,
# tripclust_parameters=TripclustParameters(
# r=6,
# rdnn=True,
# k=12,
# n=3,
# a=0.03,
# s=0.3,
# sdnn=True,
# t=0.0,
# tauto=True,
# dmax=0.0,
# dmax_dnn=False,
# ordered=True,
# link=0,
# m=50,
# postprocess=False,
# min_depth=25,
# ),
)

estimate_params = EstimateParameters(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "attpc_spyral"
version = "1.1.1"
version = "1.1.2"
description = "AT-TPC analysis pipeline"
authors = [
{name = "gwm17", email = "gordonmccann215@gmail.com"},
Expand Down
2 changes: 2 additions & 0 deletions src/spyral/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
ClusterParameters,
OverlapJoinParameters,
ContinuityJoinParameters,
HdbscanParameters,
TripclustParameters,
EstimateParameters,
SolverParameters,
Expand Down Expand Up @@ -53,6 +54,7 @@
"ClusterParameters",
"OverlapJoinParameters",
"ContinuityJoinParameters",
"HdbscanParameters",
"TripclustParameters",
"EstimateParameters",
"SolverParameters",
Expand Down
2 changes: 1 addition & 1 deletion src/spyral/core/clusterize.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def join_clusters_overlap_step(
continue

new_cluster = LabeledCloud(
g, PointCloud(event_number, np.zeros((0, 8))), np.empty(0)
g, Direction.NONE, PointCloud(event_number, np.zeros((0, 8))), np.empty(0)
)
for idx in groups_index[g]:
new_cluster.point_cloud.data = np.concatenate(
Expand Down
4 changes: 2 additions & 2 deletions src/spyral/core/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def estimate_physics_pass(
polar = math.atan(fit.slope) # type: ignore
# We have a self consistency case here. Polar should match chosen Direction
if (polar > 0.0 and direction == Direction.BACKWARD) or (polar < 0.0 and direction == Direction.FORWARD):
print("Direction={direction} and polar={polar} not consistent!")
# print("Direction={direction} and polar={polar} not consistent!")
return None # Our direction guess was bad, we need to try again with the other direction
elif direction is Direction.BACKWARD:
polar += math.pi
Expand Down Expand Up @@ -333,5 +333,5 @@ def estimate_physics_pass(
sqrt_dEdx=np.sqrt(np.fabs(dEdx)),
dE=charge_deposited,
arclength=arclength,
direction=direction,
direction=direction.value,
)
Loading