Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Arnau Aguasca-Cabot <[email protected]>
  • Loading branch information
aaguasca committed Oct 14, 2024
1 parent b5f9950 commit 1df95cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gammapy/catalog/tests/test_fermi.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ def test_lightcurve_dr1(self):
assert_allclose(table["flux_errn"][0], 4.437058e-8, rtol=1e-3)

def test_lightcurve_dr4(self):
dr2 = SourceCatalog4FGL("$GAMMAPY_DATA/catalogs/fermi/gll_psc_v32.fit.gz")
source_dr2 = dr2[self.source_name]
table = source_dr2.lightcurve(interval="1-year").to_table(
dr4 = SourceCatalog4FGL("$GAMMAPY_DATA/catalogs/fermi/gll_psc_v32.fit.gz")
source_dr4 = dr4[self.source_name]
table = source_dr4.lightcurve(interval="1-year").to_table(
format="lightcurve", sed_type="flux"
)

Expand All @@ -396,7 +396,7 @@ def test_lightcurve_dr4(self):
assert_allclose(table["flux_errn"][0], 2.298336e-08, rtol=1e-3)

with pytest.raises(ValueError):
source_dr2.lightcurve(interval="2-month")
source_dr4.lightcurve(interval="2-month")


@requires_data()
Expand Down

0 comments on commit 1df95cc

Please sign in to comment.