🎨 Rename modstool to mods4pandas in the last code parts

master
Gerber, Mike 2 years ago
parent 03d2fc9670
commit 9c0dce7a04

@ -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):

@ -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

Loading…
Cancel
Save