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

Add plt close to integration test #1210

Closed tobiaskleiner closed 1 month ago

tobiaskleiner commented 1 month ago

Fixes the following warning:

tests/integration_tests/test_ray_tracing.py::test_rx[3-5]
  /workdir/external/simtools/simtools/visualization/visualize.py:404: 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()`.
    fig = plt.figure(figsize=(8, 6))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
ctao-dpps-sonarqube[bot] commented 1 month ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: gammasim_simtools_AY_ssha9WiFxsX-2oy_w

View in SonarQube