loading successive large .out files with dyntools causing incomplete data

asked 2024-09-24 20:43:36 -0500

likethevegetable gravatar image

Hello all—it's been a while! I have a suite of tools, including one for batch analyzing .out files and am running into a peculiar issue. My tool lets me plot multiple channels from multiple .out files, but it appears that after a large .out file is read, the second one causes this problem that prints out:

Exception occured while reading channel data:

(but the program still runs) and a partially complete dictionary of data is returned from the second .out file (first 1200 channels and 'time' in the dictionary are populated lists as expected, but the remaining are empty lists).

This problem is not related to a specific .out file: say that I have two large .out files called out1 and out2, and for three different scripts I try:

[script 1]|   for o in [out1]: ...get_data()       # this works
[script 2]|   for o in [out2]: ...get_data()       # this works
[script 3]|   for o in [out1, out2]: ...get_data() # data is returned fine for out1, but corrupt for out2

I tried a few different things like deleting the object dyntools.CHNF creates and deleting and reloading dyntools. Neither of these worked.

I'm currently running Python 2.7 (unfortunately my colleagues are all stuck on it still) but will try Python 3 tomrrow.

edit retag flag offensive close merge delete