gpt4 book ai didi

python - 内存不足,无法将 .mat 结果文件读入 Python

转载 作者:太空宇宙 更新时间:2023-11-03 15:53:43 32 4
gpt4 key购买 nike

我在尝试用 Python 打开模拟结果输出文件 (.mat) 时遇到了一些问题。加载文件后,我遇到以下错误:

ValueError: Not enough bytes to read matrix 'description'; is this a badly-formed file? Consider listing matrices with whosmat and loading named matrices with variable_names kwarg to loadmat

有人成功纠正这个错误吗?我听说有一个脚本 DyMat 可以在 Python 中管理 mat 文件,但到目前为止还没有任何运气。

如有任何建议,我们将不胜感激。

最佳答案

您可以通过在 Dymola 中使用变量选择来减小模拟结果文件的大小。这会将输出限制为符合您的选择标准的状态、参数和变量。

新的 Dymola 2017 FD01 具有用于定义变量选择的用户界面。

关于python - 内存不足,无法将 .mat 结果文件读入 Python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40997813/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com