Skip to content

Commit

Permalink
Merge pull request #8 from ggmarshall/xtalk
Browse files Browse the repository at this point in the history
Xtalk
  • Loading branch information
tdixon97 authored May 7, 2024
2 parents ff93678 + eb98277 commit 8587e29
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pygama/evt/aggregators.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def evaluate_at_channel_vov(

else:
length = len(np.where(ch_comp.flattened_data.nda == ch)[0])
res = np.full(length, np.nan)
res = np.full(length, default_value)
out[ch_comp.flattened_data.nda == ch] = res

if ch == ch_comp_channels[0]:
Expand Down
3 changes: 3 additions & 0 deletions tests/evt/configs/basic-evt-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,17 @@ operations:
expression: hit.cuspEmax_ctc_cal
initial: 0
is_usable_aoe:
channels: geds_on
aggregation_mode: keep_at_ch:evt.energy_id
expression: "True"
initial: false
aoe:
channels: geds_on
aggregation_mode: keep_at_ch:evt.energy_id
expression: hit.AoE_Classifier
initial: np.nan
is_aoe_rejected:
channels: geds_on
aggregation_mode: keep_at_ch:evt.energy_id
expression: ~(hit.AoE_Double_Sided_Cut)
initial: false
3 changes: 3 additions & 0 deletions tests/evt/configs/vov-test-evt-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@
"initial": 0
},
"aoe": {
"channels": "geds_on",
"aggregation_mode": "keep_at_ch:evt.energy_id",
"expression": "hit.AoE_Classifier"
},
"aoe_idx": {
"channels": "geds_on",
"aggregation_mode": "keep_at_idx:evt.energy_idx",
"expression": "hit.AoE_Classifier"
},
Expand All @@ -71,6 +73,7 @@
"dtype": "int16"
},
"is_saturated": {
"channels": "geds_on",
"aggregation_mode": "keep_at_ch:evt.energy_id",
"expression": "hit.is_saturated"
},
Expand Down

0 comments on commit 8587e29

Please sign in to comment.