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

CLN/PERF: Do not import matplotlib at the module level. #112

Merged
merged 1 commit into from
Jul 5, 2014

Conversation

danielballan
Copy link
Member

Closes #106.

Now, following best practice, matplotlib is never imported outside of a function. It will only be imported if one of the functions in plots is called, or if locate is used with walkthrough=True (which is not the default).

@RebeccaWPerry You will have to rebase #104 on this.

@danielballan
Copy link
Member Author

Note to self: Matplotlib is still being imported by pims, which is imported by trackpy. Will fix it over there next....

@tacaswell
Copy link
Member

To be clear, walkthrough here means 'show me progress of my refinement', not the walk-through tutorial?

@danielballan
Copy link
Member Author

@tacaswell Yes.

@tacaswell
Copy link
Member

I think it would be better to have walkthrough be a callable that takes the neighborhood as it's argument.

tacaswell added a commit that referenced this pull request Jul 5, 2014
CLN/PERF: Do not import matplotlib at the module level.
@tacaswell tacaswell merged commit 25beeb1 into soft-matter:master Jul 5, 2014
danielballan added a commit to danielballan/trackpy that referenced this pull request Jul 8, 2014
danielballan added a commit that referenced this pull request Jul 8, 2014
FIX: Fix typo introducing in #112 mpl cleanup.
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.

import trackpy imports matplotlib
2 participants