Release v3.6.1 compatibility hotfix

This commit is contained in:
ukr8b3g-cmyk
2026-08-28 00:59:08 +09:00
parent e626053893
commit 8dec0b7ceb
36 changed files with 3469 additions and 74 deletions
+15
View File
@@ -4,6 +4,7 @@ from ComfyUI_H3_Continuum_Join.temporal import (
align_frame_count_nearest,
audio_grid_offset,
audio_latent_t,
audio_latent_t_from_grid_offset,
context_slots,
latent_slot_offsets,
largest_context_capacity,
@@ -50,6 +51,20 @@ def test_audio_grid_offset_is_signed_and_bounded_on_valid_h3_lengths():
assert any(value > 0 for value in offsets)
@pytest.mark.parametrize(
("frames", "ticks", "offset"),
(
(124, 207, 1.0 / 3.0),
(141, 235, 0.0),
(260, 433, -1.0 / 3.0),
),
)
def test_representative_audio_grid_phases_round_trip(frames, ticks, offset):
assert audio_latent_t(frames) == ticks
assert audio_grid_offset(frames, ticks) == pytest.approx(offset)
assert audio_latent_t_from_grid_offset(frames, offset) == ticks
def test_native_context_window_uses_source_av_grid_and_cycle_phase():
balanced = make_av_context_window(141, audio_latent_t(141), 22)
assert (balanced.video_start_slot, balanced.video_stop_slot) == (35, 42)