[CIG-MC] Multiple pid####.cfg files, none of them writing caps
Eric Heien
emheien at ucdavis.edu
Sun Nov 25 22:03:06 PST 2012
Hi Scott,
Can you add a command to print "self.saved" and send it to me? From what I understand, writelines() can fail with this message if the printed strings are Unicode. If you are running the script in a location with a Unicode name (non-Roman letters) or you changed the language region on the machine this may be causing the problem.
-Eric
On Nov 25, 2012, at 8:20 PM, scott tarlow wrote:
> Hello,
>
> I am currently doing a model run using CitcomS, and noticed that the model gave me 3 pid####.cfg files. When trying to use autocombine.py on them, it gives me the error:
>
>
> WARNING: length of machinefile does not match number of processors, try to duplicate machinefile...
> reading cookbook5.coord,velo,visc.0.100.pasted
> reading cookbook5.coord,velo,visc.1.100.pasted
> writing cookbook5.cap00.100
> Traceback (most recent call last):
> File "/usr/local/bin/autocombine.py", line 123, in <module>
> 'coord,velo,visc', 0)
> File "/usr/local/bin/batchcombine.py", line 113, in batchcombine
> ncap, nprocx, nprocy, nprocz)
> File "/usr/local/bin/combine.py", line 135, in combine
> cb.write(filename)
> File "/usr/local/bin/combine.py", line 109, in write
> fp.writelines(self.saved)
> TypeError: writelines() argument must be a sequence of strings
>
>
> Usually this works, and it always gives me the length of machine file warning. Now it just writes the .cap00.100 file and not the .cap00.100.general file needed to use opendx.
>
>
> anyone have any ideas?
>
>
> thank you for your time,
>
> Scott Tarlow
>
> _______________________________________________
> CIG-MC mailing list
> CIG-MC at geodynamics.org
> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-mc
More information about the CIG-MC
mailing list