Skip to content

Commit

Permalink
Merge pull request #30 from cu-mkp/issue1469
Browse files Browse the repository at this point in the history
Run new property count for issue #1469; tweak update.py print statements
  • Loading branch information
gschare authored Aug 25, 2020
2 parents ffc2410 + 6b37470 commit a7c4674
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 83 deletions.
2 changes: 2 additions & 0 deletions manuscript_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def generate_complete_manuscript(apply_corrections=True) -> Dict[str, Recipe]:
for filename in f: # iterate through /ms-xml/{version} folder
# split folio by entry
info = process_file(f'{dir_path}{filename}')
print(f"Loading folio {filename}...")
for identity, text in info.items(): # add each entry to dictionary
entry_dict[identity] = text

Expand All @@ -138,6 +139,7 @@ def generate_complete_manuscript(apply_corrections=True) -> Dict[str, Recipe]:
old.versions['tl'] + '\n\n' + tl)
else:
entries[entry_id] = Recipe(entry_id, folio, tc, tcn, tl)
print(f"Generating Recipe object for {entry_id}...")

# if specified, manually rewrite entry properties based on thesaurus.
if apply_corrections:
Expand Down
Loading

0 comments on commit a7c4674

Please sign in to comment.