From 1c1662a83703812704435e1b6e20ab8c4fe69b92 Mon Sep 17 00:00:00 2001 From: Hans5958 Date: Thu, 15 Jun 2023 21:45:29 +0700 Subject: [PATCH] Implement per-entry patches 2 --- tools/merge_out.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tools/merge_out.py b/tools/merge_out.py index ab14b3e5..a4bd1b36 100644 --- a/tools/merge_out.py +++ b/tools/merge_out.py @@ -9,25 +9,25 @@ atlas_ids = {} authors = [] -with open('../web/all-authors.txt', 'r') as authors_file: +with open('../web/all-authors.txt', 'r', encoding='utf-8') as authors_file: authors = authors_file.read().strip().split() -with open('../web/read_ids.txt', 'r') as ids_file: +with open('../data/read-ids.txt', 'r', encoding='utf-8') as ids_file: out_ids = ids_file.read().strip().split() with open('../web/atlas.json', 'r', encoding='utf-8') as atlas_file: atlas_data = json.loads(atlas_file.read()) -format_all_entries(atlas_file) +# format_all_entries(atlas_file) -base_image_path = os.path.join('..', 'web', '_img', 'canvas', 'place30') -ScaleConfig.image1 = os.path.join(base_image_path, '159.png') -scale_back.swap_source_dest('164', '165', os.path.join(base_image_path, '163_159.png')) -scale_back.scale_back_entries(atlas_file) -scale_back.swap_source_dest('165', '166', os.path.join(base_image_path, '164_159.png')) -scale_back.scale_back_entries(atlas_file) -scale_back.swap_source_dest('166', '167', os.path.join(base_image_path, '165_159.png')) -scale_back.scale_back_entries(atlas_file) +# base_image_path = os.path.join('..', 'web', '_img', 'canvas', 'place30') +# ScaleConfig.image1 = os.path.join(base_image_path, '159.png') +# scale_back.swap_source_dest('164', '165', os.path.join(base_image_path, '163_159.png')) +# scale_back.scale_back_entries(atlas_file) +# scale_back.swap_source_dest('165', '166', os.path.join(base_image_path, '164_159.png')) +# scale_back.scale_back_entries(atlas_file) +# scale_back.swap_source_dest('166', '167', os.path.join(base_image_path, '165_159.png')) +# scale_back.scale_back_entries(atlas_file) last_id = 0