From 5e92130ffec453a0477c96a2fc44baa16a83cd9a Mon Sep 17 00:00:00 2001 From: FlorianK13 Date: Thu, 26 Mar 2026 15:54:48 +0100 Subject: [PATCH 1/2] Remove duplicated code #726 --- open_mastr/mastr.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/open_mastr/mastr.py b/open_mastr/mastr.py index a6588c4f..fbb382db 100644 --- a/open_mastr/mastr.py +++ b/open_mastr/mastr.py @@ -239,15 +239,6 @@ def download( "or configure your own number of processes via os.environ['NUMBER_OF_PROCESSES'] = your_number\n" ) - delete_zip_file_if_corrupted(zipped_xml_file_path) - delete_xml_files_not_from_given_date(zipped_xml_file_path, xml_folder_path) - - print( - "\nWould you like to speed up the creation of your MaStR database?\n" - "Try our new parallelized processing by setting os.environ['USE_RECOMMENDED_NUMBER_OF_PROCESSES'] = True " - "or configure your own number of processes via os.environ['NUMBER_OF_PROCESSES'] = your_number\n" - ) - write_mastr_xml_to_database( engine=self.engine, zipped_xml_file_path=zipped_xml_file_path, From 09e3485fd4ca497d8c57b5424aeabf2dd86a4ab8 Mon Sep 17 00:00:00 2001 From: FlorianK13 Date: Thu, 2 Apr 2026 12:11:48 +0200 Subject: [PATCH 2/2] Update changelog #726 --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a4d7c73..a2c6de2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ and the versioning aims to respect [Semantic Versioning](http://semver.org/spec/ [#722](https://github.com/OpenEnergyPlatform/open-MaStR/pull/722) ### Removed +- Remove duplicated code in Mastr.download + [#727](https://github.com/OpenEnergyPlatform/open-MaStR/pull/727) ## [v0.16.1] Hotfix - 2025-12-17