Skip to content

Commit

Permalink
Fixing type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheshuk committed Oct 22, 2023
1 parent 8bbfa33 commit 7dbedbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/snewpy/rate_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ def calc_interaction_rate(self, flux):
class Detector:
name: str
mass: u.Quantity
channels: dict[str,DetectionChannel]
channels: Dict[str,DetectionChannel]

def run(self, flux:Container, detector_effects:bool=True)->dict[str, Container]:
def run(self, flux:Container, detector_effects:bool=True)->Dict[str, Container]:
result = {}
for name,channel in self.channels.items():
rate = channel.calc_rate(flux, apply_efficiency=detector_effects, apply_smearing=detector_effects)
Expand Down

0 comments on commit 7dbedbd

Please sign in to comment.