mind-inria / mri-nufft

Doing non-Cartesian MR Imaging has never been so easy.
https://mind-inria.github.io/mri-nufft/
BSD 3-Clause "New" or "Revised" License
51 stars 10 forks source link

Use stdlib tempfile module for examples #182

Closed paquiteau closed 1 month ago

paquiteau commented 3 months ago

Python built-in module tempfile is the canonical way of making tempfile. It would be nicer to use it in the examples that generate images (example_nD_gif.py, example_learn_trajectory.py, etc)

Using a TemporaryDirectory is probably the way to go