Skip to content

Commit badb50b

Browse files
committed
conf_int scalar assignment fix
1 parent 85b94fd commit badb50b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lts_array/classes/lts_classes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,8 @@ def post_process(dimension_number, co_array_num, alpha, h, nits, tau, xij, coeff
757757
# Halving here s.t. +/- value expresses uncertainty bounds.
758758
# Remove the 1/2's to get full values to express
759759
# coverage ellipse area.
760-
conf_int_baz[jj] = 0.5 * sig_theta
761-
conf_int_vel[jj] = 0.5 * np.abs(np.diff(1 / eExtrm[:2]))
760+
conf_int_baz[jj] = 0.5 * float(np.asarray(sig_theta).squeeze())
761+
conf_int_vel[jj] = 0.5 * float(np.asarray(np.abs(np.diff(1 / eExtrm[:2]))).squeeze())
762762

763763
# Cast weights to int for output
764764
element_weights[:, jj] = weights * 1
@@ -967,8 +967,8 @@ def solve(self, data):
967967
# Halving here s.t. +/- value expresses uncertainty bounds.
968968
# Remove the 1/2's to get full values to express
969969
# coverage ellipse area.
970-
self.conf_int_baz[jj] = 0.5 * sig_theta
971-
self.conf_int_vel[jj] = 0.5 * np.abs(np.diff(1 / eExtrm[:2]))
970+
self.conf_int_baz[jj] = 0.5 * float(np.asarray(sig_theta).squeeze())
971+
self.conf_int_vel[jj] = 0.5 * float(np.asarray(np.abs(np.diff(1 / eExtrm[:2]))).squeeze())
972972

973973
except ValueError:
974974
self.conf_int_baz[jj] = np.nan

0 commit comments

Comments
 (0)