gammasim / simtools

Tools and applications for the Simulation System of the CTA Observatory.
https://gammasim.github.io/simtools
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

test_corsika_histograms_visualize.py::test_kernel_plot_2d_photons Warnings #1072

Closed GernotMaier closed 1 month ago

GernotMaier commented 1 month ago
tests/unit_tests/corsika/test_corsika_histograms_visualize.py::test_kernel_plot_2d_photons[5-5]
  /Users/maierg/DESYCloud/CTA/Pipelines/MC-Pipeline/gammasim-tools/simtools/tests/unit_tests/corsika/test_corsika_histograms_visualize.py:23: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). Consider using `matplotlib.pyplot.close()`.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

This should be addressed.