mirror of
https://github.com/qurator-spk/modstool.git
synced 2025-06-10 12:19:56 +02:00
🎨 Rename modstool to mods4pandas in the last code parts
This commit is contained in:
parent
03d2fc9670
commit
9c0dce7a04
2 changed files with 3 additions and 3 deletions
|
@ -103,7 +103,7 @@ def alto_to_dict(alto, raise_errors=True):
|
||||||
|
|
||||||
|
|
||||||
def walk(m):
|
def walk(m):
|
||||||
# XXX do this in modstool, too
|
# XXX do this in mods4pandas, too
|
||||||
if os.path.isdir(m):
|
if os.path.isdir(m):
|
||||||
tqdm.write(f'Scanning directory {m}')
|
tqdm.write(f'Scanning directory {m}')
|
||||||
for f in tqdm(os.scandir(m), leave=False):
|
for f in tqdm(os.scandir(m), leave=False):
|
||||||
|
|
|
@ -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):
|
def mods_to_dict(mods, raise_errors=True):
|
||||||
"""Convert MODS metadata to a nested dictionary"""
|
"""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
|
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.
|
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
|
# Extend file list if directories are given
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue