Skip to content

Use raw strings for latex escapes#4

Open
jcwang587 wants to merge 2 commits into
MICCoMpy:mainfrom
jcwang587:fix/latex-raw-string
Open

Use raw strings for latex escapes#4
jcwang587 wants to merge 2 commits into
MICCoMpy:mainfrom
jcwang587:fix/latex-raw-string

Conversation

@jcwang587
Copy link
Copy Markdown

No description provided.

The two print() calls in compute_hrf_force and compute_hrf_dis contained
\Delta and \AA inside regular strings, which triggers a SyntaxWarning
(invalid escape sequence) under Python 3.12+ and will become a
SyntaxError in a future version. Prefixing the strings with `r` preserves
the intended output while silencing the warning.

Made-with: Cursor
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