夏夏夏xqh 发表于 2022-9-21 16:01:10

使用scipy模块出现问题

import matplotlib.pyplot as plt
from scipy.misc import electrocardiogram
from scipy.signal import find_peaks
import numpy as np
x = electrocardiogram()
peaks, _ = find_peaks(x, height=0)
plt.plot(x)
plt.plot(peaks, x, "x")
plt.plot(np.zeros_like(x), "--", color="gray")
plt.show()from scipy.stats import scoreatpercentile
from ._rvs_sampling import rvs_ratio_uniforms, NumericalInverseHermite# noqa
File "unuran_wrapper.pyx", line 221, in init scipy.stats._unuran.unuran_wrapper
File "unuran_wrapper.pyx", line 200, in scipy.stats._unuran.unuran_wrapper._setup_unuran
File "messagestream.pyx", line 36, in scipy._lib.messagestream.MessageStream.__cinit__
OSError: Failed to open file b'C:\\Users\\\xe5\xa4\x8f\xe5\xa4\x8f\xe5\xa4\x8f\\AppData\\Local\\Temp\\scipy-1hz5hhi3'

夏夏夏xqh 发表于 2022-9-21 16:03:06

我是想实现找曲线最大值可是这个代码我跑不通 我的目的想用这个代码来实现自己曲线的最大值寻找
页: [1]
查看完整版本: 使用scipy模块出现问题