Skip to content

Commit f542e03

Browse files
committed
QPS solving does not need to return matrix and vector
1 parent 8783b1c commit f542e03

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/astrohack/utils/ray_tracing_general.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def dist_2d(pnt_a, pnt_b):
6060
matrix[irow, 0:npnt] = 1
6161

6262
qps_coeffs, _, _, _ = least_squares_jit(matrix, vector)
63-
return qps_coeffs, matrix, vector
63+
return qps_coeffs
6464

6565

6666
def compute_qps_full_np(point_cloud):
@@ -87,7 +87,7 @@ def compute_qps_full_np(point_cloud):
8787
vector[0:npnt] = pcd_z
8888

8989
qps_coeffs, _, _ = least_squares(matrix, vector)
90-
return qps_coeffs, matrix, vector
90+
return qps_coeffs
9191

9292

9393
def compute_qps_value(pnt, qps_coeffs, point_cloud):
@@ -108,7 +108,6 @@ def qps_pcd_fitting(point_cloud_filename, output_coeff_filename, max_rows=None):
108108

109109
pcd_data = np.loadtxt(point_cloud_filename, max_rows=max_rows)
110110
qps_coeffs = compute_quintic_pseudo_spline_coefficients(pcd_data)
111-
112111
np.save(output_coeff_filename, qps_coeffs)
113112

114113
return qps_coeffs

0 commit comments

Comments
 (0)