Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
orelgueta committed Nov 27, 2023
1 parent 58f3ce0 commit 2d4471c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corsikaio/longitudinal.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np

PARTICLE_HEADER_RE = re.compile(r"LONGITUDINAL DISTRIBUTION IN\s+(\d+)\s+(SLANT\s+)?STEPS OF\s+(\d+(?:.\d*)?) G\/CM\*\*2 FOR SHOWER\s+(\d+)")
ENERG_HEADER_RE = re.compile(r"LONGITUDINAL ENERGY DEPOSIT IN\s+(\d+)\s+(SLANT\s+)?STEPS OF\s+(\d+(?:.\d*)?) G\/CM\*\*2 FOR SHOWER\s+(\d+)")
ENERGY_HEADER_RE = re.compile(r"LONGITUDINAL ENERGY DEPOSIT IN\s+(\d+)\s+(SLANT\s+)?STEPS OF\s+(\d+(?:.\d*)?) G\/CM\*\*2 FOR SHOWER\s+(\d+)")

ENERGY_COLUMNS = [
"depth",
Expand Down Expand Up @@ -83,7 +83,7 @@ def read_longitudinal_distributions(path):
)

line = f.readline().strip()
match = ENERG_HEADER_RE.match(line)
match = ENERGY_HEADER_RE.match(line)
if not match:
raise ValueError(f"Error reading file, expected energy deposition header line, got: {line}")

Check warning on line 88 in corsikaio/longitudinal.py

View check run for this annotation

Codecov / codecov/patch

corsikaio/longitudinal.py#L88

Added line #L88 was not covered by tests
n_steps = int(match.group(1))
Expand Down

0 comments on commit 2d4471c

Please sign in to comment.