Yes, that is true. However there is no explicit logarithms of zero being taken in my code. the BSDF array has already had the log taken, and that needn't happen again. And for the angle, it is fed into abs(np.sin(theta_s)-np.sin(0)), and the absolute value eliminates negatives before log(BSDF) is returned.
Once again, this code has worked repeatedly with other data sets of the same format. I am trying to understand why this exact set is not working, when the same arrays including some data that was filtered out work. If you see a log issue, please point it out more specifically, as I am fairly sure I have checked that already.
What I mean by filtered data is this: below are the same two arrays but with more values included in the center of the array, and these arrays work in that code without issue. I am asking why.
Worth noting that I did do some rounding of that data that I sent you before as part of my attempts to get it to work, so the below arrays simply include more significant figures.
angle2 = [-7.5022e+01, -7.4022e+01, -7.3022e+01, -7.2022e+01, -7.1022e+01, -7.0022e+01,
-6.9022e+01, -6.8022e+01, -6.7022e+01, -6.6022e+01, -6.5022e+01, -6.4022e+01,
-6.3022e+01, -6.2022e+01, -6.1022e+01, -6.0022e+01, -5.9022e+01, -5.8022e+01,
-5.7022e+01, -5.6022e+01, -5.5022e+01, -5.4022e+01, -5.3022e+01, -5.2022e+01,
-5.1022e+01, -5.0022e+01, -4.9022e+01, -4.8022e+01, -4.7022e+01, -4.6022e+01,
-4.5022e+01, -4.4022e+01, -4.3022e+01, -4.2022e+01, -4.1022e+01, -4.0022e+01,
-3.9022e+01, -3.8022e+01, -3.7022e+01, -3.6022e+01, -3.5022e+01, -3.4022e+01,
-3.3022e+01, -3.2022e+01, -3.1022e+01, -3.0022e+01, -2.9022e+01, -2.8022e+01,
-2.7022e+01, -2.6022e+01, -2.5022e+01, -2.4022e+01, -2.3022e+01, -2.2022e+01,
-2.1022e+01, -2.0022e+01, -1.9022e+01, -1.8022e+01, -1.7022e+01, -1.6022e+01,
-1.5022e+01, -1.4022e+01, -1.3022e+01, -1.2022e+01, -1.1022e+01, -1.0022e+01,
-9.0220e+00, -8.0220e+00, -7.0220e+00, -6.0220e+00, -5.0220e+00, -4.0220e+00,
-3.0220e+00, -2.0220e+00, -1.5220e+00, -1.0220e+00, -5.2200e-01, -3.7200e-01,
-2.2200e-01, -2.0700e-01, -1.9200e-01, -1.7700e-01, -1.6200e-01, -1.4700e-01,
-1.3200e-01, -1.1700e-01, -1.0200e-01, -8.7000e-02, -7.2000e-02, -5.7000e-02,
-4.2000e-02, -2.7000e-02, -1.2000e-02, 3.0000e-03, 1.8000e-02, 3.3000e-02,
4.8000e-02, 6.3000e-02, 7.8000e-02, 9.3000e-02, 1.0800e-01, 1.2300e-01,
1.3800e-01, 1.5300e-01, 1.6800e-01, 1.8300e-01, 1.9800e-01, 2.1300e-01,
2.2800e-01, 2.4300e-01, 2.5800e-01, 2.7300e-01, 2.8800e-01, 4.3800e-01,
5.8800e-01, 7.3800e-01, 8.8800e-01, 1.0380e+00, 1.5380e+00, 2.0380e+00,
2.5380e+00, 3.0380e+00, 4.0380e+00, 5.0380e+00, 6.0380e+00, 7.0380e+00,
8.0380e+00, 9.0380e+00, 1.0038e+01, 1.1038e+01, 1.2038e+01, 1.3038e+01,
1.4038e+01, 1.5038e+01, 1.6038e+01, 1.7038e+01, 1.8038e+01, 1.9038e+01,
2.0038e+01, 2.1038e+01, 2.2038e+01, 2.3038e+01, 2.4038e+01, 2.5038e+01,
2.6038e+01, 2.7038e+01, 2.8038e+01, 2.9038e+01, 3.0038e+01, 3.1038e+01,
3.2038e+01, 3.3038e+01, 3.4038e+01, 3.5038e+01, 3.6038e+01, 3.7038e+01,
3.8038e+01, 3.9038e+01, 4.0038e+01, 4.1038e+01, 4.2038e+01, 4.3038e+01,
4.4038e+01, 4.5038e+01, 4.6038e+01, 4.7038e+01, 4.8038e+01, 4.9038e+01,
5.0038e+01, 5.1038e+01, 5.2038e+01, 5.3038e+01, 5.4038e+01, 5.5038e+01,
5.6038e+01, 5.7038e+01, 5.8038e+01, 5.9038e+01, 6.0038e+01, 6.1038e+01,
6.2038e+01, 6.3038e+01, 6.4038e+01, 6.5038e+01, 6.6038e+01, 6.7038e+01,
6.8038e+01, 6.9038e+01, 7.0038e+01, 7.1038e+01, 7.2038e+01, 7.3038e+01,
7.4038e+01]
BSDF2 = [-13.56630947, -14.17576332, -11.59218515, -9.30553056, -7.07133359,
-7.18443147, -7.16924992, -7.16097151, -7.14690119, -7.13566015,
-7.13114886, -7.12628449, -7.11207708, -7.09903686, -7.07795066,
-7.06581358, -7.05822939, -7.04690241, -7.02744012, -7.00316546,
-6.9793587, -6.95873283, -6.94390073, -6.91639247, -6.90675578,
-6.91236589, -6.89286667, -6.86278191, -6.83636528, -6.80519869,
-6.77848294, -6.75503419, -6.72210593, -6.68781686, -6.6648091,
-6.62860954, -6.60321609, -6.57845153, -6.51841955, -6.47857364,
-6.4271827, -6.37889329, -6.33903818, -6.32330752, -6.2963606,
-6.27488903, -6.24300757, -6.19824274, -6.14648227, -6.10127941,
-6.02937412, -5.96423856, -5.92492802, -5.86712527, -5.79622677,
-5.71534911, -5.61001894, -5.50854469, -5.38824207, -5.26953557,
-5.13909386, -5.05552806, -4.90317199, -4.65268117, -4.42368231,
-4.18383173, -3.95859064, -3.71769054, -3.44640397, -3.17797383,
-2.92620621, -2.67017655, -2.31506261, -1.85469927, -1.50013518,
-0.82645003, 0.18398684, 1.0321163, 3.3127304, 3.48859757,
3.26231838, 3.88362353, 4.83310225, 5.27453684, 5.34901048,
5.7547924, 6.39107924, 7.01121399, 7.74283596, 8.63657495,
10.37847872, 12.53681421, 13.94478289, 14.13686916, 13.23265173,
11.12741003, 9.24956109, 7.66387726, 6.31842743, 5.43720937,
4.90749454, 4.59096984, 4.06748711, 3.55305973, 3.28914788,
2.8953593, 2.86903462, 2.99071973, 2.98517676, 2.68648602,
2.3580198, 2.17361471, 1.98622916, 1.71900955, 2.59972232,
2.09863124, 0.54522705, -0.46044942, -1.7015532, -2.03255796,
-2.18658142, -2.39010569, -2.71992037, -3.02228161, -3.34642515,
-3.64352375, -3.93888046, -4.15856313, -4.36772933, -4.57852826,
-4.79499986, -5.01962559, -5.19161775, -5.313025, -5.43666032,
-5.56332512, -5.64532491, -5.72817763, -5.82764646, -5.88530435,
-5.95802977, -6.05461736, -6.12522454, -6.17011286, -6.19775098,
-6.24713129, -6.32442296, -6.37477685, -6.41550104, -6.44025478,
-6.46178823, -6.45731681, -6.47532372, -6.49564563, -6.54450202,
-6.59953556, -6.6608952, -6.69587492, -6.73632616, -6.77322439,
-6.80249477, -6.8197444, -6.84384195, -6.85043021, -6.87819648,
-6.91740166, -6.95045403, -6.97539193, -6.99910332, -7.01745854,
-7.0352478, -7.05370633, -7.07262992, -7.07641065, -7.10146139,
-7.11219975, -7.12566256, -7.1384271, -7.14995424, -7.1553196,
-7.17276303, -7.17799044, -7.18575108, -7.19304023, -7.19984706,
-7.20818492, -7.20212634, -7.21278699, -7.22123391, -7.23293156,
-7.23820568, -7.2461694, -7.25066821]