Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up imports in voltageToAnalyticEfieldConverterNeutrinos #778

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions NuRadioReco/framework/station.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ def __init__(self, station_id):

def set_sim_station(self, sim_station):
"""
Sets the SimStation of the Station.
If a SimStation is already present, it is overwritten.
Sets the SimStation of the Station. If a SimStation is already present, it is overwritten.

Parameters
----------
Expand All @@ -39,7 +38,10 @@ def add_sim_station(self, sim_station):
sim_station : NuRadioReco.framework.sim_station.SimStation
The SimStation to add to the Station.
"""
self.__sim_station = self.__sim_station + sim_station
if self.__sim_station is None:
self.__sim_station = sim_station
else:
self.__sim_station = self.__sim_station + sim_station

def get_sim_station(self):
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,46 +1,24 @@
from __future__ import absolute_import, division, print_function, unicode_literals
from NuRadioReco.modules.base.module import register_run
import os
import time
import random

import numpy as np
from scipy import signal
from scipy.signal import correlate

from scipy import optimize as opt
import matplotlib.pyplot as plt
from scipy.optimize import Bounds
from types import SimpleNamespace
import collections

from radiotools import helper as hp
from radiotools import plthelpers as php
from radiotools import coordinatesystems as cs

from NuRadioReco.detector import detector
from NuRadioReco.detector import antennapattern
from NuRadioReco.utilities import units, fft, trace_utilities

from NuRadioReco.utilities import units, fft, geometryUtilities as geo_utl
from NuRadioMC.SignalGen import askaryan as ask
from NuRadioMC.SignalProp import analyticraytracing as ray
from NuRadioReco.framework.parameters import stationParameters as stnp, showerParameters as shp

from NuRadioReco.framework.parameters import stationParameters as stnp
from NuRadioReco.framework.parameters import electricFieldParameters as efp
from NuRadioReco.framework.parameters import showerParameters as shp
from NuRadioReco.modules import channelResampler as CchannelResampler
import NuRadioReco.modules.channelResampler
import NuRadioReco.framework.electric_field
from NuRadioReco.utilities.geometryUtilities import get_time_delay_from_direction

from NuRadioMC.SignalProp import propagation
from NuRadioMC.SignalGen.parametrizations import get_time_trace
from radiotools import plthelpers as php, coordinatesystems as cstrans, helper as hp

from NuRadioMC.utilities import medium
from radiotools import coordinatesystems as cstrans
from NuRadioMC.SignalProp import analyticraytracing as ray
from radiotools import plthelpers as php
from NuRadioMC.SignalGen import askaryan as ask
from NuRadioReco.utilities import geometryUtilities as geo_utl
import time

channelResampler = CchannelResampler.channelResampler()
channelResampler.begin(debug=False)
channelResampler = NuRadioReco.modules.channelResampler.channelResampler()

class voltageToAnalyticEfieldConverterNeutrinos:
"""
Expand Down
Loading