google-code-export / spinwaves

Automatically exported from code.google.com/p/spinwaves
0 stars 0 forks source link

Cross-section plots have 'nan' values only when using cs_driver method. #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When run from the GUI or using the cs_driver method in csection_calc.py's 
__main__, the plots of the cross-section and spherical averaging contain 'nan' 
values. This can be seen visually by the generated output of the min, max in 
console and by noticing that near the origin the plots are white (undefined 
values).

However, if running the calculation using the other methods in __main__, the 
plots do not contain 'nan' values.

Original issue reported on code.google.com by wfly...@gmail.com on 22 Jun 2010 at 5:56

GoogleCodeExporter commented 9 years ago
The nan values were caused by trying to plot a region of the hkl_interval where 
the cross-section is undefined. If the starting value for hkl_interval is 
changed from 0 to 1e-3 (0.001), then the problem is fixed.

Original comment by wfly...@gmail.com on 7 Jul 2010 at 3:15

GoogleCodeExporter commented 9 years ago

Original comment by wfly...@gmail.com on 7 Jul 2010 at 3:18