Note

You are not reading the stable version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

requires_data

gammapy.utils.testing.requires_data(name='gammapy-data')[source]

Decorator to declare required data for tests.

Examples

from gammapy.utils.testing import requires_data

@requires_data()
def test_using_data_files():
    filename = "$GAMMAPY_DATA/..."
    ...