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

hp.vis.vis2d.show_scatterer_slices - not sure if this still works #8

Closed
anna-wang opened this issue Aug 7, 2014 · 1 comment · Fixed by #9
Closed

hp.vis.vis2d.show_scatterer_slices - not sure if this still works #8

anna-wang opened this issue Aug 7, 2014 · 1 comment · Fixed by #9

Comments

@anna-wang
Copy link
Contributor

I'm not sure hp.vis.vis2d.show_scatterer_slices works/I don't know if there's a different way of calling it now. When I type the following I get a bunch of black slices:

import holopy as hp
from holopy.scattering.scatterer import Ellipsoid

test = Ellipsoid(n = 1.585, r = [.4,0.4,1.5], center = [10,10,20])
hp.vis.vis2d.show_scatterer_slices(test,0.1)

I also get an error the first time I try this:

colorbar.py:829: RuntimeWarning: invalid value encountered in divide
  z = np.take(y, i0) + (xn - np.take(b, i0)) * dy / db

example slice:
figure_1

@tdimiduk
Copy link
Member

tdimiduk commented Aug 7, 2014

There was a bug in ellipsoid, PR #9 should fix it. Check out the PR and if it looks good, please merge it.

barkls pushed a commit that referenced this issue Oct 15, 2019
barkls pushed a commit to barkls/holopy that referenced this issue Dec 6, 2019
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