diff --git a/pandahub/lib/PandaHub.py b/pandahub/lib/PandaHub.py index 5200b25..c51b994 100644 --- a/pandahub/lib/PandaHub.py +++ b/pandahub/lib/PandaHub.py @@ -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 @@ -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) diff --git a/pandahub/lib/database_toolbox.py b/pandahub/lib/database_toolbox.py index bc533ea..634c330 100644 --- a/pandahub/lib/database_toolbox.py +++ b/pandahub/lib/database_toolbox.py @@ -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: diff --git a/setup.py b/setup.py index 5f18585..6a7fd07 100644 --- a/setup.py +++ b/setup.py @@ -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,