digital-art-api / conftest.py
Ruzzel Mendoza
Phase 1: entropy filtering for block matching - add block_entropy() (stddev of preprocessed grayscale block) and tunable MIN_BLOCK_STDDEV (env-overridable, default 5.0) - tag each block hash dict with its entropy score in generate_block_hashes - compare_blocks excludes pairs where either block is flat/low-detail; falls back to all blocks with low_content_warning when an image has no content - propagate content_blocks_used/low_content_warning through compare_hash_sets - legacy DB rows without entropy stay eligible (backward compat) - add pytest scaffolding and entropy-filtering tests
4b85872
Raw History Blame Contribute Delete
143 Bytes
# Ensures the repository root is importable when running pytest from anywhere
# (pytest inserts the directory of this conftest into sys.path).