Recorder in OSpy seems to cut off last line in output file

Forum for asking and answering questions related to use of the OpenSeesPy module

Moderators: silvia, selimgunay, Moderators

Post Reply
ajmakdisi
Posts: 5
Joined: Wed Mar 19, 2014 10:02 am
Location: University of Washington

Recorder in OSpy seems to cut off last line in output file

Post by ajmakdisi » Fri May 15, 2020 4:05 pm

I am running an non-linear dynamic analysis of a soil column (consisting of 160 quad elements and 322 nodes). I have been playing around a little bit with whether or not it's easier/faster to use the recorder command to generate output files of nodal responses, or to use the "nodeDisp" command for every node at every time step.

In doing so, I found that when using recorders in OpenSeesPy, the output files are not completely written. The last line is getting cut off about a third of the way through, making it impossible to read into an array without truncating the last line. Does this issue sound familiar to anyone?

mhscott
Posts: 874
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Recorder in OSpy seems to cut off last line in output file

Post by mhscott » Mon May 18, 2020 8:13 pm

You can try adding ops.wipe() at the end of your analysis. This will flush all the recorders and force them to write and close their files.

ajmakdisi
Posts: 5
Joined: Wed Mar 19, 2014 10:02 am
Location: University of Washington

Re: Recorder in OSpy seems to cut off last line in output file

Post by ajmakdisi » Thu May 21, 2020 12:00 pm

That worked, thanks so much!!

Post Reply