Skip to content

Commit

Permalink
Add imports
Browse files Browse the repository at this point in the history
  • Loading branch information
NereaSalor committed Nov 29, 2023
1 parent b12fa93 commit 41fc065
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions antea/mcsim/sensor_functions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import pandas as pd
import numpy as np

from typing import Sequence

def apply_charge_fluctuation(sns_df: pd.DataFrame, DataSiPM_idx: pd.DataFrame):
"""
Apply a fluctuation in the total detected charge, sensor by sensor,
Expand Down
5 changes: 4 additions & 1 deletion antea/mcsim/sensor_functions_test.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import os
import pandas as pd
import numpy as np

from .. database import load_db as db

from .. io.mc_io import load_mcsns_response
from .. io.mc_io import load_mcTOFsns_response
from . sensor_functions import apply_charge_fluctuation
from . sensor_functions import apply_sipm_pde
from . sensor_functions import apply_sipm_saturation

import hypothesis.strategies as st
from hypothesis import given
from typing import Sequence

def test_number_of_sensors_is_the_same(ANTEADATADIR):
"""
Expand Down Expand Up @@ -62,7 +65,7 @@ def test_apply_sipm_saturation(ANTEADATADIR):
is never higher than the original charge.
'''
PATH_IN = os.path.join(ANTEADATADIR, 'petit_mc_fbk_test.pet.h5')
sns_response = load_mcsns_response(PATH_IN)
sns_response = load_mcTOFsns_response(PATH_IN)
events = sns_response.event_id.unique()

evt = events[0]
Expand Down

0 comments on commit 41fc065

Please sign in to comment.