Skip to content

Commit 56b98eb

Browse files
committed
refactor(batch_process.py): make the main_path required
1 parent 6917d15 commit 56b98eb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

batch_process.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
database = "data/processed_paper_database.csv"
1717

1818

19-
def filter_tex_files(tex_files: List[str], main_path: str = None) -> List[str]:
20-
"""extract all MAIN.tex files for processing, if main_path is not None, then
21-
only extract MAIN.tex files in the main_path (not recursive)
19+
def filter_tex_files(tex_files: List[str], main_path: str) -> List[str]:
20+
"""extract all MAIN.tex files for processing,
21+
only MAIN.tex files in the main_path (not recursive) are extracted
2222
2323
Args:
2424
tex_files (List[str]): list of tex files
25-
main_path (str, optional): path to main directory. Defaults to None.
25+
main_path (str): path to main directory.
2626
2727
Returns:
2828
List[str]: list of tex files that are compiable.

0 commit comments

Comments
 (0)