iact_estimator.tests.test_observability

Tests for the observability module.

Functions

test_get_days_in_this_year()

Test getting the number of days in the current year.

test_define_constraints(sample_config)

Test defining observational constraints from config.

test_define_constraints_custom_values(sample_config)

Test defining constraints with custom values.

test_define_constraints_no_moon_max()

Test defining constraints with no maximum moon separation.

test_check_observability(sample_target_source, ...)

Test checking observability of a target.

test_get_total_available_time(sample_target_source, ...)

Test computing total available observation time.

test_get_total_available_time_different_resolutions(...)

Test that different time resolutions give consistent results.

test_get_total_available_time_unreachable_target(...)

Test total available time for an unreachable target.

test_check_observability_always_observable_target(...)

Test observability for a target that should be observable during the year.

Module Contents

iact_estimator.tests.test_observability.test_get_days_in_this_year()[source]

Test getting the number of days in the current year.

iact_estimator.tests.test_observability.test_define_constraints(sample_config)[source]

Test defining observational constraints from config.

iact_estimator.tests.test_observability.test_define_constraints_custom_values(sample_config)[source]

Test defining constraints with custom values.

iact_estimator.tests.test_observability.test_define_constraints_no_moon_max()[source]

Test defining constraints with no maximum moon separation.

iact_estimator.tests.test_observability.test_check_observability(sample_target_source, sample_observer, sample_config)[source]

Test checking observability of a target.

iact_estimator.tests.test_observability.test_get_total_available_time(sample_target_source, sample_observer, sample_config, sample_time_range)[source]

Test computing total available observation time.

iact_estimator.tests.test_observability.test_get_total_available_time_different_resolutions(sample_target_source, sample_observer, sample_config)[source]

Test that different time resolutions give consistent results.

iact_estimator.tests.test_observability.test_get_total_available_time_unreachable_target(sample_observer, sample_config)[source]

Test total available time for an unreachable target.

iact_estimator.tests.test_observability.test_check_observability_always_observable_target(sample_observer, sample_config)[source]

Test observability for a target that should be observable during the year.