forked from HQU-gxy/CVTH3PE
feat: Add hypothesis testing and update dependencies
- Added property-based tests for camera affinity calculations using Hypothesis, enhancing test coverage and reliability. - Updated `.gitignore` to include `.hypothesis` directory. - Added `hypothesis` and `pytest` as dependencies in `pyproject.toml` and `uv.lock` for improved testing capabilities. - Refactored imports in `playground.py` to include `Sequence` and `Mapping` from `beartype.typing`. - Introduced a new test file `tests/test_affinity.py` for structured testing of affinity calculations.
This commit is contained in:
@ -24,9 +24,7 @@ from pathlib import Path
|
||||
from typing import (
|
||||
Any,
|
||||
Generator,
|
||||
Mapping,
|
||||
Optional,
|
||||
Sequence,
|
||||
TypeAlias,
|
||||
TypedDict,
|
||||
TypeVar,
|
||||
@ -40,6 +38,7 @@ import jax.numpy as jnp
|
||||
import numpy as np
|
||||
import orjson
|
||||
from beartype import beartype
|
||||
from beartype.typing import Sequence, Mapping
|
||||
from cv2 import undistortPoints
|
||||
from IPython.display import display
|
||||
from jaxtyping import Array, Float, Num, jaxtyped
|
||||
|
||||
Reference in New Issue
Block a user