-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeepDiff raises decimal exception when using significant digits #426
Comments
Hi @yawhide
|
Merged
oh that makes sense. thanks for the quick fix! |
Sure! |
netbsd-srcmastr
referenced
this issue
in NetBSD/pkgsrc
Jan 28, 2024
v6-7-1 - Support for subtracting delta objects when iterable_compare_func is used. - Better handling of force adding a delta to an object. - Fix for ```Can't compare dicts with both single and double quotes in keys`` <https://github.com/seperman/deepdiff/issues/430>`__ - Updated docs for Inconsistent Behavior with math_epsilon and ignore_order = True v6-7-0 - Delta can be subtracted from other objects now. - verify_symmetry is deprecated. Use bidirectional instead. - always_include_values flag in Delta can be enabled to include values in the delta for every change. - Fix for Delta.\__add\_\_ breaks with esoteric dict keys. v6-6-1 - Fix for `DeepDiff raises decimal exception when using significant digits <https://github.com/seperman/deepdiff/issues/426>`__ - Introducing group_by_sort_key - Adding group_by 2D. For example ``group_by=['last_name', 'zip_code']`` v6-6-0 - Numpy 2.0 support - Adding `Delta.to_flat_dicts <https://zepworks.com/deepdiff/current/serialization.html#delta-serialize-to-flat-dictionaries>`__ v6-5-0 - Adding ```parse_path`` <https://github.com/seperman/deepdiff/pull/419>`__ v6-4-1 - Bugfix: Keep Numpy Optional
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Comparing certain decimals with the significant_digits argument leads to an
invalidDecimal
exception from being raised within deep diffTo Reproduce
Expected behavior
There should be no exception and no
values_changed
OS, DeepDiff version and Python version (please complete the following information):
Additional context
Stack trace:
I dont quite understand why your code doesnt work. When i try to reproduce outside of your library, i dont have issues:
The text was updated successfully, but these errors were encountered: