This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / io / _fortran / FortranFile / write_record

function

scipy.io._fortran:FortranFile.write_record

source: build-install/usr/lib/python3.14/site-packages/scipy/io/_fortran.py:137

Signature

def write_record(self, *items)

Summary

Write a record (including sizes) to the file.

Parameters

*items : array_like

The data arrays to write.

Notes

Writes data items to a file

write_record(a.T, b.T, c.T, ...)

write(1) a, b, c, ...

Note that data in multidimensional arrays is written in row-major order --- to make them read correctly by Fortran programs, you need to transpose the arrays yourself when writing them.

Aliases

  • scipy.io.FortranFile.write_record