[英]How to fix bizarre crash in Chaco-based plotting app.?
I've got a really bizarre case: my Chaco-based Python GUI plotting application crashes, or doesn't, according to the comments in the code below:我有一个非常奇怪的案例:根据下面代码中的注释,我的基于 Chaco 的 Python GUI 绘图应用程序崩溃了,或者没有崩溃:
# self.ideal_signal = x # Causes crash.
# self.ideal_signal = x[:-70000] # Fixes crash.
# self.ideal_signal = x[:-62500] # Causes crash again.
self.ideal_signal = 0.6 * x # Also fixes crash
# self.ideal_signal = 0.7 * x # Causes crash again.
x
is a 256,000 element NumPy nd-array of type float64
. x
是float64
类型的 256,000 个元素的 NumPy nd-array。
I have no idea what to do here.我不知道在这里做什么。 Does anyone have a suggestion?
有人有建议吗?
It's almost as if crash/don't crash is determined by the cumulative sum of the amplitude (magnitude?) of the signal being plotted, but that seems awfully silly.几乎就好像崩溃/不崩溃是由绘制的信号的幅度(幅度?)的累积总和决定的,但这似乎非常愚蠢。
Try making a minimal reproducible example, if possible.如果可能,请尝试制作一个最小的可重现示例。 This might lead you to the answer.
这可能会引导您找到答案。 If not, post the mimimal example at https://groups.google.com/forum/#!forum/ets-users
如果没有,请在https://groups.google.com/forum/#!forum/ets-users发布最小示例
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.