Skip to content

Cleanup string import#5

Merged
LinusBDittmer merged 5 commits intomasterfrom
sympy_import
Jun 9, 2025
Merged

Cleanup string import#5
LinusBDittmer merged 5 commits intomasterfrom
sympy_import

Conversation

@jonasleitner
Copy link
Copy Markdown
Owner

  • Clean the code
  • Add arguments to the import function to customize which tensors are imported as Amplitude and SymmetricTensor

Copy link
Copy Markdown
Collaborator

@LinusBDittmer LinusBDittmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM save for the implementation of floating points. It's straightforward and the usage of Rational over a float is user-dependent and therefore reasonably generated by to_latex_str().

Comment thread adcgen/expression/import_from_sympy_latex.py Outdated
@LinusBDittmer LinusBDittmer merged commit fd952e0 into master Jun 9, 2025
2 checks passed
@jonasleitner jonasleitner deleted the sympy_import branch June 10, 2025 08:18
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.

2 participants