Skip to content

Commit

Permalink
fix no need to rename normalization function
Browse files Browse the repository at this point in the history
  • Loading branch information
jokasimr committed Oct 24, 2023
1 parent 34dcbd3 commit 52ac457
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/essreflectometry/reflectometry/corrections.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ def footprint_correction(data_array: ThetaData[Run]) -> FootprintCorrected[Run]:
def normalize_sample_by_counts(
data_array: Histogrammed[Sample],
) -> Normalized[Sample]:
return Normalized[Sample](_normalize_by_counts(data_array))
return Normalized[Sample](normalize_by_counts(data_array))


def normalize_reference_by_counts(
data_array: CalibratedReference,
) -> Normalized[Reference]:
return Normalized[Reference](_normalize_by_counts(data_array))
return Normalized[Reference](normalize_by_counts(data_array))


def _normalize_by_counts(
def normalize_by_counts(
data_array: sc.DataArray,
) -> sc.DataArray:
"""
Expand Down

0 comments on commit 52ac457

Please sign in to comment.