MemoryError while plotting large oscilloscope files on Ubuntu

后端 未结 2 1341
广开言路
广开言路 2021-01-25 12:42

I am trying to read large oscilloscope .trc files and plot them. Plotting one file works but as soon as I put the script into a loop, trying to plot all files (1 fi

2条回答
  •  猫巷女王i
    2021-01-25 13:07

    It took quite some time but I managed to get the MemoryError under control. Not only had I to put gc.collect() at the end of each loop but also plt.close(). Only then the Errors would stop. Sorry for the confusion. I learned a lot from this.

提交回复
热议问题