Comments (2)
That is actually corrected in the most recent version of the docs, if you build it yourself, or look at:
http://people.seas.harvard.edu/~tdimiduk/holopy/
If you want to do a dumbbell like that specifically, you might also try out the CSG Union I added but have not formally documented yet.
from holopy.core import Optics, ImageSchema
from holopy.scattering.scatterer import Union, Sphere
from holopy.scattering.theory import DDA
s1 = Sphere(n=1.59, r = .5, center = (5, 4.6, 5))
s2 = Sphere(n=1.59, r = .5, center = (5, 5.4, 5))
schema = ImageSchema(100, .1, Optics(.66, 1.33, (1, 0)))
dumbbell = Union(s1, s2)
holo = DDA.calc_holo(dumbbell, schema)
# csg scattters do support rotations
holo_rotatated = DDA.calc_holo(dumbbell.rotated(1, 0, 0), schema)
I want to get a little bit of feedback on the interface, but if you think this is sensible after using it, I can move to formally documenting the csg interface.
from holopy.
I see. The way it's done now is incompatible with the 10+ other types of
scatterers I've created, such as cylinders with spherical caps, Janus
crescents, floating lenses...
On 29 July 2014 14:24, Tom Dimiduk [email protected] wrote:
That is actually corrected in the most recent version of the docs, if you
build it yourself, or look at:
http://people.seas.harvard.edu/~tdimiduk/holopy/If you want to do a dumbbell like that specifically, you might also try
out the CSG Union I added but have not formally documented yet.from holopy.core import Optics, ImageSchemafrom holopy.scattering.scatterer import Union, Spherefrom holopy.scattering.theory import DDAs1 = Sphere(n=1.59, r = .5, center = (5, 4.6, 5))s2 = Sphere(n=1.59, r = .5, center = (5, 5.4, 5))schema = ImageSchema(100, .1, Optics(.66, 1.33, (1, 0)))dumbbell = Union(s1, s2)holo = DDA.calc_holo(dumbbell, schema)# csg scattters do support rotationsholo_rotatated = DDA.calc_holo(dumbbell.rotated(1, 0, 0), schema)
I want to get a little bit of feedback on the interface, but if you think
this is sensible after using it, I can move to formally documenting the csg
interface.—
Reply to this email directly or view it on GitHub
#5 (comment).
from holopy.
Related Issues (20)
- DDA Memory Error HOT 1
- Problems about Scattering Calculations for large distance HOT 4
- Background Grayscale changes HOT 1
- The center of the particle is brighter than the surroundings HOT 1
- Adding a new scattering theory HOT 1
- 3D plotting HOT 1
- Installation HOT 3
- Migrate from Travis CI to GitHub Actions
- Migrate from nose to pytest HOT 1
- Migrate from numpy.distutils to meson HOT 1
- Make maintenance release (3.6)
- Make final release of v3 API (HoloPy 3.7)
- Make new API for HoloPy (version 4) HOT 1
- Calculation of noise_sd should be revised
- Test failing for constructive solid geometry with ADDA 1.4
- Processing and simulation methods for iSCAT data
- Tests failing from run_tests.py HOT 2
- trouble installing the ADDA package HOT 2
- Issue with ps_propagate function
- Issue with Fitting Models to Data: Size and Refractive Index
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from holopy.