id3c.tests.test_effective_num_images#

Tests for effective_num_images.

Functions#

test_short_period_caps_at_unlimited_frames()

Short t_period -> capped by UNLIMITED_FRAMES, not by duration.

test_long_period_caps_at_max_seconds()

Long t_period -> capped by MAX_ACQUISITION_SECONDS / t_period.

test_crossover_at_max_over_unlimited()

Crossover happens at t_period = MAX_ACQUISITION_SECONDS / UNLIMITED_FRAMES.

test_returns_at_least_one()

Even a pathologically long t_period returns >= 1.

test_zero_period_clamped()

t_period <= 0 must not divide-by-zero; returns UNLIMITED_FRAMES.

test_observed_failing_combo_is_capped()

The 2026-06-16 failing combo (1_000_000 frames at 1 s period,

Module Contents#

id3c.tests.test_effective_num_images.test_short_period_caps_at_unlimited_frames()[source]#

Short t_period -> capped by UNLIMITED_FRAMES, not by duration.

id3c.tests.test_effective_num_images.test_long_period_caps_at_max_seconds()[source]#

Long t_period -> capped by MAX_ACQUISITION_SECONDS / t_period.

id3c.tests.test_effective_num_images.test_crossover_at_max_over_unlimited()[source]#

Crossover happens at t_period = MAX_ACQUISITION_SECONDS / UNLIMITED_FRAMES.

id3c.tests.test_effective_num_images.test_returns_at_least_one()[source]#

Even a pathologically long t_period returns >= 1.

id3c.tests.test_effective_num_images.test_zero_period_clamped()[source]#

t_period <= 0 must not divide-by-zero; returns UNLIMITED_FRAMES.

id3c.tests.test_effective_num_images.test_observed_failing_combo_is_capped()[source]#

The 2026-06-16 failing combo (1_000_000 frames at 1 s period, = 1_000_000 s ~= 11.6 days) is reduced to a safe value.