Skip to content

Commit

Permalink
fix formating
Browse files Browse the repository at this point in the history
  • Loading branch information
MetinSa committed Jun 26, 2024
1 parent f721285 commit 74f82ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zodipy/unpack_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ def interpolate_spectral_parameter(
weights: units.Quantity | None,
model_spectrum: units.Quantity,
spectral_parameter: npt.ArrayLike,
use_nearest=False,
use_nearest: bool = False,
) -> npt.NDArray:
"""Interpolate a spectral parameters."""
paramameter = np.asarray(spectral_parameter)

if use_nearest:
interpolated_parameter = (
interpolate.interp1d(model_spectrum.value, paramameter, kind="nearest")(wavelengths.value)
)
interpolated_parameter = interpolate.interp1d(
model_spectrum.value, paramameter, kind="nearest"
)(wavelengths.value)
else:
interpolated_parameter = np.interp(wavelengths.value, model_spectrum.value, paramameter)

Expand Down

0 comments on commit 74f82ec

Please sign in to comment.