From c4111033172db28c4737e8438f27901811919ce4 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Thu, 9 Jan 2025 13:35:28 -0500 Subject: [PATCH] reef: mgr/diskprediction_local: avoid mypy error Patch is for reef ONLY, not a traditional backport. Disable mypy check for the given line. This check is triggerin all reef CI jobs to fail. Fixes: https://tracker.ceph.com/issues/69471 Signed-off-by: John Mulligan --- src/pybind/mgr/diskprediction_local/predictor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/diskprediction_local/predictor.py b/src/pybind/mgr/diskprediction_local/predictor.py index 3bbe7a4b7f232..9ce57bf951e16 100644 --- a/src/pybind/mgr/diskprediction_local/predictor.py +++ b/src/pybind/mgr/diskprediction_local/predictor.py @@ -158,7 +158,7 @@ class RHDiskFailurePredictor(Predictor): # view structured array as 2d array for applying rolling window transforms # do not include capacity_bytes in this. only use smart_attrs disk_days_attrs = disk_days_sa[[attr for attr in model_smart_attr if 'smart_' in attr]]\ - .view(np.float64).reshape(disk_days_sa.shape + (-1,)) + .view(np.float64).reshape(disk_days_sa.shape + (-1,)) # type:ignore # featurize n (6 to 12) days data - mean,std,coefficient of variation # current model is trained on 6 days of data because that is what will be -- 2.39.5