Skip to content

Conversation

T4ras123
Copy link

This pull request includes changes to the pix2tex/dataset/extract_latex.py file to simplify the code and remove unnecessary dependencies. The most important changes include removing the numpy import and refactoring the check_brackets function to use built-in Python functions instead of numpy.

Codebase simplification:

  • pix2tex/dataset/extract_latex.py: Removed the import of the numpy library as it was not necessary for the operations being performed.
  • pix2tex/dataset/extract_latex.py: Refactored the check_brackets function to use the built-in sum function instead of numpy.cumsum, simplifying the code and removing the dependency on numpy.
  • get rid of unnecessary dependencies
  • get the same functionality
  • faster code

- get rid of unnecessary dependencies
- get the same functionality
- faster code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant