Skip to content

Commit

Permalink
new file added
Browse files Browse the repository at this point in the history
  • Loading branch information
snonis committed Mar 5, 2024
1 parent 381f61a commit 8faddad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grand/sim/efield2voltage.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class Efield2Voltage:

def __init__(self, f_input, f_output="", seed=None, padding_factor=1.0, du_type='GP300'):
# du_type='GP300' (using hfss simulations), 'GP300_nec' (using nec simulations), 'GP300_mat' (using matlab simulations), 'Horizon'
self.du_type = du_type
self.f_input = f_input
self.f_output = f_output
self.seed = seed # used to generate same set of random numbers. (gal noise)
Expand Down Expand Up @@ -147,7 +148,8 @@ def get_event(self, event_idx=None, event_number=None, run_number=None):
self.fft_size,
self.freqs_mhz,
self.nb_du,
seed=self.seed
seed=self.seed,
du_type=self.du_type
)
# compute total transfer function of RF chain. Can be computed only once in __init__ if length of time traces does not change between events.
if self.params["add_rf_chain"]:
Expand Down

0 comments on commit 8faddad

Please sign in to comment.