Skip to content

Commit

Permalink
Avoid repeated logging for each cluster in misfit analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Jan 2, 2025
1 parent 9e2e32f commit 135c3c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ert/analysis/misfit_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ def get_scaling_factor(nr_observations: int, nr_components: int) -> float:
nr_components is the number of primary components from PCA analysis
below a user threshold
"""
logger.info(
f"Calculation scaling factor, nr of primary components: "
f"{nr_components}, number of observations: {nr_observations}"
)
if nr_components == 0:
nr_components = 1
logger.warning(
Expand Down Expand Up @@ -160,4 +156,5 @@ def main(
scale_factor = get_scaling_factor(len(index), components)
nr_components[index] *= components
scale_factors[index] *= scale_factor
logger.info(f"Calculated scaling factors for {len(scale_factors)} clusters")
return scale_factors, clusters, nr_components

0 comments on commit 135c3c9

Please sign in to comment.