Skip to content
Snippets Groups Projects
Commit 2b47a5e6 authored by Ju Feng's avatar Ju Feng Committed by Mads M. Pedersen
Browse files

Solve two issues in noj: 1. variables passed to np.arccos() could be lareger...

Solve two issues in noj: 1. variables passed to np.arccos() could be lareger than 1.0 or less than -1.0 for some combination of R1, R2 and d to cal_overlapping_area_factor. 2. Ct values passed to np.sqrt(1-Ct) could be larger than 1. These two issues both result errors/nan values. Now these variables/values have to pre-treated to avoid such results.
parent f8f79710
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment