[Numpy-discussion] reshape

Nils Wagner nwagner at iam.uni-stuttgart.de
Thu Nov 6 15:07:58 EST 2008


On Thu, 6 Nov 2008 21:50:52 +0200
  "Nadav Horesh" <nadavh at visionsense.com> wrote:
> A correction:
> 
> lines_list = [cc[i:i+8] for i in range(1, len(cc),  8)]
> 
> Nadav

Hi Nadav,

Thank you very much. My next question;

How can I save lines_list to a file with the following
so called small field format (NASTRAN). Each row consists
of ten fields of eight characters each.
Field 1 should be empty in my application.
Field 10 is used only for optional continuation 
information when applicable.

12345678123456781234567812345678123456781234567812345678123456781234567812345678
xxxxxxxxyyyyyyyyzzzzzzzz........
  

Cheers,
               Nils



More information about the NumPy-Discussion mailing list