Skip to content

Commit

Permalink
ran black
Browse files Browse the repository at this point in the history
  • Loading branch information
gschwefer committed Oct 27, 2023
1 parent ccc5fd0 commit 2b6059c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ctapipe/atmosphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def __init__(self, table: Table):
for i, f in enumerate([_exponential] * 4 + [_linear])
]
self._inv_funcs = [
partial(f, a=param_a[4-i], b=param_b[4-i], c=param_c[4-i])
partial(f, a=param_a[4 - i], b=param_b[4 - i], c=param_c[4 - i])
for i, f in enumerate([_inv_linear] + 4 * [_inv_exponential])
]
self._d_funcs = [
Expand Down
5 changes: 1 addition & 4 deletions ctapipe/tests/test_atmosphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,15 @@ def test_height_overburden_circle(table_profile):

profile_5 = atmo.FiveLayerAtmosphereDensityProfile.from_array(fit_reference)

layer_5_heights=u.Quantity([5,15,30,70,110]*u.km)
layer_5_heights = u.Quantity([5, 15, 30, 70, 110] * u.km)

for height in layer_5_heights:

circle_height_5_layer = profile_5.height_from_overburden(
profile_5.integral(height)
)

assert np.allclose(circle_height_5_layer, height, rtol=0.005)



# Exponential atmosphere
density_model = atmo.ExponentialAtmosphereDensityProfile(
scale_height=10 * u.km, scale_density=0.00125 * u.g / u.cm**3
Expand Down

0 comments on commit 2b6059c

Please sign in to comment.