diff --git a/LoopStructural/interpolators/_geological_interpolator.py b/LoopStructural/interpolators/_geological_interpolator.py index 0368698c..c4fd6d23 100644 --- a/LoopStructural/interpolators/_geological_interpolator.py +++ b/LoopStructural/interpolators/_geological_interpolator.py @@ -154,16 +154,22 @@ def set_normal_constraints(self, points: np.ndarray): ---------- points : np.ndarray array containing the value constraints usually 7-8 columns. - X,Y,Z,nx,ny,nz,weight + X,Y,Z,nx,ny,nz,(weight, default : 1 for each row) Returns ------- + Notes + ------- + If no weights are provided, w = 1 is assigned to each normal constraint. + """ if points.shape[1] == self.dimensions * 2: points = np.hstack([points, np.ones((points.shape[0], 1))]) + logger.warning(f"No weight provided for normal constraints, all weights are set to 1") + raise Warning if points.shape[1] < self.dimensions * 2 + 1: - raise ValueError("Nonrmal constraints must at least have X,Y,Z,nx,ny,nz") + raise ValueError("Normal constraints must at least have X,Y,Z,nx,ny,nz") self.n_n = points.shape[0] self.data["normal"] = points self.up_to_date = False