コード例 #1
0
def test_map_axis_aligned():
    ax1 = MapAxis([1, 2, 3], interp="lin", node_type="edges")
    ax2 = MapAxis([1.5, 2.5], interp="log", node_type="center")
    assert not ax1.is_aligned(ax2)
コード例 #2
0
ファイル: test_geom.py プロジェクト: laofei177/gammapy
def test_map_axis_aligned():
    ax1 = MapAxis([1, 2, 3], interp='lin', node_type='edges')
    ax2 = MapAxis([1.5, 2.5], interp='log', node_type='center')
    assert not ax1.is_aligned(ax2)