Skip to content

Commit

Permalink
Remove WFSim connection (#268)
Browse files Browse the repository at this point in the history
* Remove WFSim connection

* Remove test
  • Loading branch information
HenningSE authored Oct 16, 2024
1 parent 733ec56 commit fd40b75
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 128 deletions.
19 changes: 0 additions & 19 deletions fuse/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,25 +204,6 @@ def ak_num(array, **kwargs):
return ak.num(array, **kwargs)


@numba.njit
def offset_range(offsets):
"""Computes range of constant event ids while in same offset. E.g. for an
array [1], [1,2,3], [5] this function yields [0, 1, 1, 1, 2].
Args:
offsets (ak.array): jagged array offsets.
Returns:
np.array: Indicies.
"""
res = np.zeros(np.sum(offsets), dtype=np.int32)
i = 0
for ind, o in enumerate(offsets):
res[i : i + o] = ind
i += o
return res


# Code shared between S1 and S2 photon propagation
def init_spe_scaling_factor_distributions(spe_shapes):
# Create a converter array from uniform random numbers to SPE gains
Expand Down
3 changes: 0 additions & 3 deletions fuse/plugins/micro_physics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
from . import yields
from .yields import *

from . import wfsim_connection
from .wfsim_connection import *

from . import detector_volumes
from .detector_volumes import *

Expand Down
101 changes: 0 additions & 101 deletions fuse/plugins/micro_physics/wfsim_connection.py

This file was deleted.

5 changes: 0 additions & 5 deletions tests/test_MicroPhysics.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ def test_BBFYields(self):
self.test_context.register(fuse.plugins.BBFYields)
self.test_context.make(self.run_number, "quanta")

@timeout_decorator.timeout(TIMEOUT, exception_message="WFSim connection timed out")
def test_WFSimConnection(self):
self.test_context.register(fuse.plugins.output_plugin)
self.test_context.make(self.run_number, "wfsim_instructions")

@timeout_decorator.timeout(TIMEOUT, exception_message="GasPhasePlugin timed out")
def test_GasPhasePlugin(self):
self.test_context.register(fuse.plugins.XENONnT_GasPhase)
Expand Down

0 comments on commit fd40b75

Please sign in to comment.