Skip to content

Commit

Permalink
Notes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-wilkins committed Oct 15, 2024
1 parent e85fc21 commit 2327c04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sasdata/transforms/rebinning.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ def calculate_interpolation_matrix_1d(input_axis: Quantity[ArrayLike],
order: InterpolationOptions = InterpolationOptions.LINEAR,
is_density=False):

""" Calculate the matrix that converts values recorded at points specified by input_axis to
values recorded at points specified by output_axis"""

# We want the input values in terms of the output units, will implicitly check compatability
# TODO: incorporate mask

working_units = output_axis.units

Expand Down Expand Up @@ -136,6 +140,8 @@ def calculate_interpolation_matrix_2d_axis_axis(input_1: Quantity[ArrayLike],
order: InterpolationOptions = InterpolationOptions.LINEAR,
is_density: bool = False):

# If it wasn't for the mask, this would be the same as just two sets of 1D interpolation

match order:
case InterpolationOptions.NEAREST_NEIGHBOUR:
pass
Expand Down

0 comments on commit 2327c04

Please sign in to comment.