Skip to content

Commit

Permalink
Merge pull request #1659 from e2nIEE/develop
Browse files Browse the repository at this point in the history
version 2.10.1: fix for JSONSerializableClass
  • Loading branch information
rbolgaryn committed Jul 31, 2022
2 parents d49abec + 5b672b0 commit 1a85fdf
Show file tree
Hide file tree
Showing 6 changed files with 1,823 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Change Log
=============

[2.10.1] - 2022-07-31
-------------------------------
- [FIXED] remove the parameter ignore_order in DeepDiff (__eq__), add __hash__ to JSONSerializableClass

[2.10.0] - 2022-07-29
-------------------------------
- [ADDED] added arbitrary keyword arguments, ``**kwargs``, in all create-functions
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
# The short X.Y version.
version = "2.10"
# The full version, including alpha/beta/rc tags.
release = "2.10.0"
release = "2.10.1"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion pandapower/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.10.0"
__version__ = "2.10.1"

import os
pp_dir = os.path.dirname(os.path.realpath(__file__))
Expand Down
7 changes: 6 additions & 1 deletion pandapower/io_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,10 +771,15 @@ def __eq__(self, other):
if self.__class__.__name__ != other.__class__.__name__:
return False
else:
d = DeepDiff(self.__dict__, other.__dict__, ignore_order=True, ignore_nan_inequality=True,
d = DeepDiff(self.__dict__, other.__dict__, ignore_nan_inequality=True,
significant_digits=6, math_epsilon=1e-6, ignore_private_variables=False)
return len(d) == 0

def __hash__(self):
# for now we use the address of the object for hash, but we can change it in the future
# to be based on the attributes e.g. with DeepHash or similar
return hash(id(self))


def with_signature(obj, val, obj_module=None, obj_class=None):
if obj_module is None:
Expand Down
1,810 changes: 1,810 additions & 0 deletions pandapower/test/test_files/old_versions/example_2.10.1.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

setup(
name='pandapower',
version='2.10.0',
version='2.10.1',
author='Leon Thurner, Alexander Scheidler',
author_email='[email protected], [email protected]',
description='An easy to use open source tool for power system modeling, analysis and optimization with a high degree of automation.',
Expand Down

0 comments on commit 1a85fdf

Please sign in to comment.