microsoft / pybryt

Python library for pedagogical auto-assessment
https://microsoft.github.io/pybryt
MIT License
63 stars 19 forks source link

Tolerances not implemented for iterables #102

Closed marijanbeg closed 3 years ago

marijanbeg commented 3 years ago

Describe the bug When comparing values, tolerances allow the difference between the student's and reference values. Tolerances are implemented only for numeric (numbers.Real) types. In the case of iterables, the comparison should be performed element-wise, similar to np.allclose behaviour. This allows for two iterables to be considered equal if they are within tolerance.

Will be addressed in PR.