Skip to content

Commit

Permalink
bump version to 0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
vogt31337 committed Sep 5, 2023
1 parent 4863b2f commit 490fce4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pandahub/lib/PandaHub.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def upgrade_project_to_latest_version(self):
# TODO these operations should be encapsulated in a transaction in order to avoid
# inconsistent Database states in case of occuring errors

if version.parse(self.get_project_version()) < version.parse("0.2.3"):
if version.parse(self.get_project_version()) < version.parse("0.2.4"):
db = self._get_project_database()
all_collection_names = db.list_collection_names()
old_net_collections = [name for name in all_collection_names if
Expand Down Expand Up @@ -555,7 +555,7 @@ def _get_net_from_db_by_id(self, id_, include_results=True, only_tables=None, co
return net

def deserialize_and_update_data(self, net, meta):
if version.parse(self.get_project_version()) <= version.parse("0.2.3"):
if version.parse(self.get_project_version()) <= version.parse("0.2.4"):
if meta.get("sector", "power") == "power":
data = dict((k, json.loads(v, cls=io_pp.PPJSONDecoder)) for k, v in meta['data'].items())
net.update(data)
Expand Down
2 changes: 1 addition & 1 deletion pandahub/lib/database_toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def serialize_object_data(element, element_data, version_):
json
A json representation of the pandapower element
'''
if version_ <= version.parse("0.2.3"):
if version_ <= version.parse("0.2.4"):
try:
element_data = json.dumps(element_data, cls=PPJSONEncoder)
except:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
name='pandahub',
packages=find_packages(),
url='https://github.com/e2nIEE/pandahub',
version='0.2.3',
version='0.2.4',
include_package_data=True,
long_description_content_type='text/markdown',
zip_safe=False,
Expand Down

0 comments on commit 490fce4

Please sign in to comment.