Note

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

assert_time_allclose

gammapy.utils.testing.assert_time_allclose(actual, desired, atol=0.001)[source]

Assert all-close for astropy.time.Time objects.

atol is absolute tolerance in seconds.