Message: Re: CSV overwriting/interrupting lines in multithreaded operation Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: CSV overwriting/interrupting lines in multithreaded operation 

Forum: Analysis
Re: Question CSV overwriting/interrupting lines in multithreaded operation (Nicole Ackerman)
Date: 20 Jan, 2017
From: Guy Barrand <Guy Barrand>

  Hi Nicole

 Some hints...

 I see that in your csv ntuple you have string columns (since we see "e-", "RadioactiveDaughter," in the line
you show). One idea may be that some of the written strings contain control (then non printable characters as
'\n' or worst some commas ! It is clear that if this happens the IO in itself in the file would be ok but the "CSV
format in itself" would be corrupted because then you will not have the same number of items per line.
For efficiency reason, for the moment, I have no check about that when writing strings...

 Else yes, if some disk is full you may have problems, but if so the related program or thread would have
crashed (because right now the "<<" operator is not protected) and you would have corrupted lines at the
end of a badly/not-properly closed file.

 Then some actions would be to check if the corrupted lines appear at end of file, and also to check (my
prefered hypothesis) that your strings potentially do not contain fancy characters (including commas !).

   Cheers. Guy

 Add Message Add Message
to: "Re: CSV overwriting/interrupting lines in multithreaded operation"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]