Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 30, 2023
1 parent 9a050cf commit 2af837e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion appletree/maps/_gas_gain.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"coordinate_lowers": [-70, -70], "coordinate_uppers": [70, 70], "coordinate_type": "regbin", "coordinate_name": ["x", "y"], "map": [[31.3, 31.3, 31.3, 31.3, 31.3], [31.3, 31.3, 31.3, 31.3, 31.3], [31.3, 31.3, 31.3, 31.3, 31.3], [31.3, 31.3, 31.3, 31.3, 31.3], [31.3, 31.3, 31.3, 31.3, 31.3]]}
{"coordinate_lowers": [-70, -70], "coordinate_uppers": [70, 70], "coordinate_type": "regbin", "coordinate_name": ["x", "y"], "map": [[31.3, 31.3, 31.3, 31.3, 31.3], [31.3, 31.3, 31.3, 31.3, 31.3], [31.3, 31.3, 31.3, 31.3, 31.3], [31.3, 31.3, 31.3, 31.3, 31.3], [31.3, 31.3, 31.3, 31.3, 31.3]]}
3 changes: 3 additions & 0 deletions appletree/plugins/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def simulate(self, key, parameters, x, y, z):
s1_correction_true = self.s1_correction.apply(pos_true)
return key, s1_correction_true


@export
@takes_config(
Map(
Expand Down Expand Up @@ -65,6 +66,7 @@ def simulate(self, key, parameters, x, y):
s2_correction_true = self.s2_correction.apply(pos_true)
return key, s2_correction_true


@export
@takes_config(
Map(
Expand All @@ -83,6 +85,7 @@ def simulate(self, key, parameters, rec_x, rec_y):
s2_correction_rec = self.s2_correction.apply(pos_rec)
return key, s2_correction_rec


@export
class PhotonDetection(Plugin):
depends_on = ["num_photon", "s1_correction_true"]
Expand Down

0 comments on commit 2af837e

Please sign in to comment.