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

PhotonAttenuation package conflict #1

Open
dkazanc opened this issue May 2, 2018 · 0 comments
Open

PhotonAttenuation package conflict #1

dkazanc opened this issue May 2, 2018 · 0 comments

Comments

@dkazanc
Copy link
Owner

dkazanc commented May 2, 2018

When running SpectralData_generation_demo.m script there might be the following error:

Error: File: PhotonAttenuation.m Line: 195 Column: 3
"mu" previously appeared to be used as a function or command, conflicting with its use here as the name of a variable.
A possible cause of this error is that you forgot to initialize the variable, or you have initialized it implicitly using load or eval.

Error in geocore_phantom (line 13)
V = PhotonAttenuation(mat_short, E*1e-3, 'mac'); % mass attenuation coef.

The simple solution is to do as suggested - initialise mu with mi = 0; at the line 95 of PhotonAttenuation.m script.

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

No branches or pull requests

1 participant