Comments (4)
Dear Chris,
Thank you for finding another bug! In VtsSpectroscopy.m the call to the Vts.dll IntralipidScatterer was erroneously using VolumeFraction instead of vol_frac. VolumeFraction is the property within the class, however in the matlab script we have simplified the names of those scatterer properties to ease use. So vol_frac is the one that should be used in the matlab script and I have updated VtsSpectroscopy.m to use vol_frac so when the next release of our matlab inter code is provided, it will be fixed.
While I was editing VtsSpectroscopy.m I expanded the Mie scatterer properties to include vol_frac. I also added two examples in vts_solver_demo.m that uses an Intralipid scatterer and an example that uses a Mie scatterer specification.
Just a comment about your script. For scatterers, the volume fraction is expected to be a real number between 0 and 1, not complex. Are you by chance wanting to specify a complex refractive index? If so using the Mie scatterer properties might work for you.
Thanks again for helping us improve our code.
Best,
Carole
from vts.
Hi again Carole,
Thanks for being so responsive! I frequently use 'i' as an increment, which may not be the best practice here, but Matlab doesn't seem to notice. For complex numbers I think Matlab prefers 1i*(theComplexNumber).
from vts.
Thanks for the clarification about 'i'. I'll post here when the new Matlab download is available. I'm glad you have a workaround in the meantime.
from vts.
The latest Matlab Interop download, version 4.6, has this bug fix.
from vts.
Related Issues (20)
- CI/CD - Github Actions to build Vts.sln and run Vts.Library.sln Tests upon PR submission
- Fix the SonarCloud issues in IForwardSover HOT 4
- Add ability to angle SurfaceFiberDetector
- Fix the 5 SonarCloud Bugs
- Fix bugs, security issues and maintenance issues in MCCL and MCPP
- Fix the bug in EllipsoidTissueRegion
- Reconfigure the detectors to use global code for the Binary Serializers HOT 65
- Fix the cognitive complexity issues from the Sonar Cloud analysis HOT 5
- Bug in 2 of the Detectors TransmittedMTOfXAndYAndSubregionHistDetector and ReflectedMTOfXAndYAndSubregionHistDetector HOT 2
- Preparation for the November release
- Vts Code and Scripting changes in preparation for Polyglot notebooks
- Add ability to use layered concentric infinite cylinders with refractive index mismatch HOT 2
- Move the FemModeling and MGRTE into a separate repository HOT 2
- Non-flat layered tissues for MCCL HOT 31
- Replace Moq with NSubstitute
- Add resiliency to CustomBinaryStreamWriterOfT HOT 1
- SDA forward solvers need check on optical properties to make sure solution is valid HOT 4
- .NET Polyglot Notebook and Jupyter Notebook samples HOT 17
- RangeOfT enhancements for simplicity to consumers HOT 8
- Publish static web hosted documentation to Github Pages
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 vts.