Add test for rad_max new methods
import numpy as np
from numpy.testing import assert_allclose
import astropy.units as u
-from gammapy.maps import MapAxis
+from gammapy.maps import MapAxis, RegionGeom
from gammapy.irf import RadMax2D, EffectiveAreaTable2D
from gammapy.utils.testing import mpl_plot_check, requires_dependency
@@ -99,3 +99,7 @@ def test_rad_max_single_bin():
assert value.shape == (1, 3)
assert_allclose(value, 0.1 * u.deg)
+ geom = RegionGeom.create("fk5;circle(0,0,0.1)")
+ assert rad_max.is_fixed_radmax
+ assert rad_max.check_geom(geom)
+
