Week 7, 8 and 9 - GSoC 2021

Week 7, 8 and 9 - GSoC 2021

This blog post briefly describes the work done on the project during the 7th, 8th and 9th weeks of GSoC 2021

Work Done

  1. Added latexify
  2. Added print_name in new_copy
  3. Added a latexify notebook

Added latexify

I added a Latexify class in the Operations folder and a method in BaseModel class which calls the class. It takes a model and parses all the nodes, adds initial and boundary equations with ranges and converts everything to latex and if you give it a file name it will render the latex and return it in a form of a file. Like this with SPM model spm_equations.png The pull request for it is merged now and you can test it out.

Added print_name in new_copy

Fixed a bug that was causing errors while printing equations. I renamed all the new_copy to create_copy and created a new method in the Symbol class which calls the create_copy and attaches print_name to it.

Added a latexify notebook

Created an example notebook to demonstrate the working of the latexify

Pull Requests during these weeks

Challenges I ran into

Customizing the equations in the latexify function in a way that is also supported by SymPy's printing.

giphy.gif

I learned a lot and really enjoyed working on this project.

That's all for this post, bye!