segmentation_clustering: log distribution of snapshot durations

This commit is contained in:
Fabian Neumann 2024-01-04 18:42:47 +01:00
parent 73abb61967
commit 29b24b1b41

View File

@ -3481,6 +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())
n.set_snapshots(sn_weightings.index)
n.snapshot_weightings = n.snapshot_weightings.mul(sn_weightings, axis=0)