def test_matrix_profile_nan(self):
        # Test matrix profile of NaNs (NaN output)
        ts = np.random.uniform(size=2 ** 6)
        ts[:] = np.nan

        param = [
            {"threshold": 0.98, "windows": None, "feature": "min"},
            {"threshold": 0.98, "windows": None, "feature": "max"},
            {"threshold": 0.98, "windows": None, "feature": "mean"},
            {"threshold": 0.98, "windows": None, "feature": "median"},
            {"threshold": 0.98, "windows": None, "feature": "25"},
            {"threshold": 0.98, "windows": None, "feature": "75"},
        ]

        self.assertTrue(np.isnan(matrix_profile(ts, param=param)[0][1]))