Skip to content

Commit

Permalink
Fix a small bug for 3D NN interpolator
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Jun 18, 2024
1 parent 7b3bc2f commit c26e5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appletree/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def build_regbin(self, data):
)
else:
raise ValueError(f"Unknown method {self.method} for 2D regular binning.")
elif len(self.coordinate_lowers) == 3 and self.method == "IDW":
elif len(self.coordinate_lowers) == 3:
if self.method == "IDW":
setattr(self, "interpolator", interpolation.map_interpolator_regular_binning_3d)
elif self.method == "NN":
Expand Down

0 comments on commit c26e5fd

Please sign in to comment.