From 24df4bc897f0172d5842f07179ff55f7cb2f28c0 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Thu, 14 Sep 2023 12:45:12 +0000 Subject: [PATCH] Black reformating --- premise/export.py | 1 + premise/utils.py | 1 + 2 files changed, 2 insertions(+) diff --git a/premise/export.py b/premise/export.py index d2589428..64c2a7e8 100644 --- a/premise/export.py +++ b/premise/export.py @@ -970,6 +970,7 @@ def prepare_db_for_export( return base.database, base.cache + def clean_up(exc): """Remove keys from ``exc`` that are not in the schema.""" diff --git a/premise/utils.py b/premise/utils.py index b6e06c38..56bb9115 100644 --- a/premise/utils.py +++ b/premise/utils.py @@ -280,6 +280,7 @@ def write_database(self): print(f"Database {self.db_name} already exists: " "it will be overwritten.") super().write_database() + def reset_all_codes(data): """ Re-generate all codes in each dataset of a database