Message Boards Message Boards

0
|
1324 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Put[] intermittently failing

I am running a calculation using a Mathematica script. The script, at the end of the calculation, saves the results using

Put[{hDataBase,dt},fname];

This command seems to be failing intermittently: the file is always created, but sometimes not the whole output is written to the file. That is the file stops somewhere in the middle without the remaining data nor the closing brackets. A typical example of the last several lines of output are

....
       {2, 7, 8}, {2, 8, 5}, {2, 5, 8}, {2, 8, 6}, {2, 6, 6}, {2, 6, 7}, {2,
       7, 4}, {2, 4, 2}, {2, 2, 1}}, {0.4391373332390765, 0.1042914658197076,
       0.07148717084382664, 0.00862654966311425, 0.004588310608428399,
       0.05036851602171777, 0.0019191398457539196, 0.0028740978256792823,
       0.021140265057087396, 0.130153290172383, 0.011709917569178819}}},
    {{overlap, 2, {{2, 1, 2}, {2, 2, 1}, {2, 1, 2}, {2, 2, 2}, {2, 2, 1}, {2,
       1, 1}, {2, 1, 1}, {2, 1, 2}, {2, 2, 1}, {2, 1, 2}, {2, 2, 1}, {2, 1,

The file stops at the comma. Has anyone seen this behavior before?

Thanks,

David

POSTED BY: David Pekker
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract