Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not show charts at the end, close charts after being used #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hugo-dc
Copy link
Member

@hugo-dc hugo-dc commented Aug 13, 2020

Fixes #154

Also, closes all charts after being used in order to not retain in memory, avoiding the warning message 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).

@hugo-dc hugo-dc requested a review from jwasinger August 13, 2020 06:08
@lgtm-com
Copy link

lgtm-com bot commented Aug 13, 2020

This pull request introduces 104 alerts when merging d35b66f into a156a28 - view on LGTM.com

new alerts:

  • 53 for Use of the return value of a procedure
  • 51 for Variable defined multiple times

@lgtm-com
Copy link

lgtm-com bot commented Aug 15, 2020

This pull request introduces 4 alerts when merging d35a61e into f1ed847 - view on LGTM.com

new alerts:

  • 3 for Use of the return value of a procedure
  • 1 for Variable defined multiple times

@lgtm-com
Copy link

lgtm-com bot commented Aug 15, 2020

This pull request introduces 4 alerts when merging ad90868 into f1ed847 - view on LGTM.com

new alerts:

  • 3 for Use of the return value of a procedure
  • 1 for Variable defined multiple times

Copy link
Contributor

@jwasinger jwasinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hugo-dc The CI generates the charts in a non-GUI environment which results in smaller resolution images, and is the reason this PR fails CI currently.

@hugo-dc
Copy link
Member Author

hugo-dc commented Aug 26, 2020

@jwasinger I created a Dockerfile to generate the charts in a docker instance, but it is generating the exact same files (no diff), I'll take a closer look at the CI and maybe try to use the same versions of the tools (OS, python, jupyter,etc).

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.

script opens too many charts
2 participants