Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Monofrequent dipole source example plot #50

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

Closed
hagenw opened this issue Dec 1, 2017 · 2 comments · Fixed by #57
Closed

Monofrequent dipole source example plot #50

hagenw opened this issue Dec 1, 2017 · 2 comments · Fixed by #57

Comments

@hagenw
Copy link
Member

hagenw commented Dec 1, 2017

The plot of the mono-frequent dipole source has a (normalization?) issue in the current version.

frequency-domain-9_new

http://python.sfstoolbox.org/en/latest/frequency-domain.html#sfs.mono.source.point_dipole

Before it was

frequency-domain-9_old

http://python.sfstoolbox.org/en/0.3.1/#sfs.mono.source.point_dipole

@hagenw
Copy link
Member Author

hagenw commented Feb 16, 2018

This is a strange one and seems to originate in matplotlib or numpy. The calculated sound fields are identical besides deviations in the order of e-26.

Plotting the field calculated by the master branch with numpy==1.14.0 and matplotlib==2.1.2 results in the first figure. Doing the same with numpy==1.13.1 and matplotlib==2.0.2 results in the second figure.

The difference between sfs 0.3.1 and its master branch comes from slightly different doc/requirements.txt files, which I used to install the packages.

@trettberg
Copy link
Collaborator

It seems to be a matplotlib 2.1 issue, I just asked over there.
matplotlib/matplotlib#10567

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 a pull request may close this issue.

2 participants