-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
29 lines (23 loc) · 1.23 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os
PROJECT_ROOT = os.path.join(os.path.expanduser("~"), "Desktop", "work", "fyp", "diff_test_tex_engines") # CHANGE TO YOUR PATH
LOGS_FOLDER = os.path.join(PROJECT_ROOT, 'logs')
PROJECT_BIN = os.path.join(PROJECT_ROOT, 'bin_tmp')
CMP_TYPE = 'ENGINE' # or 'VERSION'
USE_TL2020_DIR = False # set True to use COMPILED_FOLDER_2020 for TL2020 instead of COMPILED_FOLDER
DOWNLOAD_FOLDER = os.path.join(PROJECT_BIN, 'arxiv_tars')
EXTRACTED_FOLDER = os.path.join(PROJECT_BIN, 'arxiv_tars_extracted')
COMPILED_FOLDER = os.path.join(PROJECT_BIN, 'compiled_tex_pdf')
# COMPILED_FOLDER = os.path.join(PROJECT_BIN, 'version_compiled_pdf')
COMPILED_FOLDER_2020 = os.path.join(PROJECT_BIN, 'version_compiled_pdf_2020')
DIFFS_FOLDER = os.path.join(PROJECT_BIN, 'diff_pdfs')
YEAR_AND_MONTH = '2306'
NUM_ATTEMPTS = 3
TEX_FILE_DOWNLOAD_XPATH = '//*[@id="dlpage"]/dl'
# leave this empty if running for all
DOWNLOAD_BY_ARXIV_IDS = [ '2306.00036', '2306.00207', '2306.00417', '2306.00001', '2306.00002', '2306.00057', '2306.01691', '2306.00004', '2306.00022', '2306.01308' ]
# DOWNLOAD_BY_ARXIV_IDS = []
PIXEL_TOLERANCE = 500
# for img comparison
CONVERTED_IMG_FOLDER = os.path.join(PROJECT_BIN, 'converted_img')
CONVERT_FIRST_N_PAGES = 3
CONVERT_LAST_N_PAGES = 3