Skip to content

Commit

Permalink
Merge pull request gammapy#5605 from meeseeksmachine/auto-backport-of…
Browse files Browse the repository at this point in the history
…-pr-5603-on-v1.3.x

Backport PR gammapy#5603 on branch v1.3.x (Fix circular import on map.read)
  • Loading branch information
registerrier authored Nov 25, 2024
2 parents 6015bd9 + f229347 commit 3320527
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gammapy/data/observations.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from astropy.utils import lazyproperty
import matplotlib.pyplot as plt
from gammapy.utils.deprecation import GammapyDeprecationWarning
from gammapy.irf import FoVAlignment
from gammapy.utils.fits import LazyFitsData, earth_location_to_dict
from gammapy.utils.metadata import CreatorMetaData, TargetMetaData, TimeInfoMetaData
from gammapy.utils.scripts import make_path
Expand Down Expand Up @@ -109,6 +108,8 @@ def _repr_html_(self):
@property
def bkg(self):
"""Background of the observation."""
from gammapy.irf import FoVAlignment

bkg = self._bkg
# used for backward compatibility of old HESS data
try:
Expand Down

0 comments on commit 3320527

Please sign in to comment.