segmentation_clustering: log distribution of snapshot durations (fix)

This commit is contained in:
Fabian Neumann 2024-01-04 18:54:49 +01:00
parent 29b24b1b41
commit cf5f3cbd88

View File

@ -3481,7 +3481,7 @@ def apply_time_segmentation(
sn_weightings = pd.Series(
weightings, index=snapshots, name="weightings", dtype="float64"
)
logger.info("Distribution of snapshot durations:\n", weightings.value_counts())
logger.info(f"Distribution of snapshot durations:\n{weightings.value_counts()}")
n.set_snapshots(sn_weightings.index)
n.snapshot_weightings = n.snapshot_weightings.mul(sn_weightings, axis=0)