From 9c0dce7a0494a82ec9ea94028992d8a46a44f51c Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Mon, 4 Jul 2022 19:26:41 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Rename=20modstool=20to=20mods4pa?= =?UTF-8?q?ndas=20in=20the=20last=20code=20parts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qurator/mods4pandas/alto4pandas.py | 2 +- qurator/mods4pandas/mods4pandas.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qurator/mods4pandas/alto4pandas.py b/qurator/mods4pandas/alto4pandas.py index c6db8fb..1508150 100755 --- a/qurator/mods4pandas/alto4pandas.py +++ b/qurator/mods4pandas/alto4pandas.py @@ -103,7 +103,7 @@ def alto_to_dict(alto, raise_errors=True): def walk(m): - # XXX do this in modstool, too + # XXX do this in mods4pandas, too if os.path.isdir(m): tqdm.write(f'Scanning directory {m}') for f in tqdm(os.scandir(m), leave=False): diff --git a/qurator/mods4pandas/mods4pandas.py b/qurator/mods4pandas/mods4pandas.py index a6fe164..299fa5c 100755 --- a/qurator/mods4pandas/mods4pandas.py +++ b/qurator/mods4pandas/mods4pandas.py @@ -18,7 +18,7 @@ from .lib import sorted_groupby, TagGroup, ns, flatten -logger = logging.getLogger('modstool') +logger = logging.getLogger('mods4pandas') def mods_to_dict(mods, raise_errors=True): """Convert MODS metadata to a nested dictionary""" @@ -255,7 +255,7 @@ def process(mets_files: List[str], output_file: str, output_csv: str, output_xls INPUT is assumed to be a METS document with MODS metadata. INPUT may optionally be a directory. The tool then reads all files in the directory. - modstool writes two output files: A pickled pandas DataFrame and a CSV file with all conversion warnings. + mods4pandas writes two output files: A pickled pandas DataFrame and a CSV file with all conversion warnings. """ # Extend file list if directories are given