pyfar / pyfar/gallery

LaTeX formatting issue in `fast_fourier_transform.ipynb`

Open
#123 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
3
Forks
2
Avg merge
2d 3h
Merged PRs (30d)
3

Description

Dear,

In the first cell of the PSD section, PyFar (Or matplotlib in the backend?) complains about the string formatting:

<>:5: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.`

LaTeX output looks fine, but warning is there nontheless. The "did you mean" suggestion does not resolve anything.

Jelle (from ASSA :D)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open and run fast_fourier_transform.ipynb, then inspect the first cell in the PSD section where the warning appears. Check the string formatting involved and confirm that the SyntaxWarning is gone while the LaTeX output remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, latex, python
Domain
documentation
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.