Search
Search Results
Search finished, found 24 page(s) matching the search query.
- numpy.fromfile
...NumPy reference Routines and objects by topic Array creation routines numpy.fromfile...
- numpy.fromfile (Python function, in numpy.fromfile)
- numpy.rec.fromfile (Python function, in numpy.rec.fromfile)
- Array creation
...aches one can use. If the file has a relatively simple format then one can write a simple I/O library and use the NumPy fromfile() function and .tofile() method to read and write NumPy arrays directly (mind your byteorder though!) If a good...
- NumPy 1.16.0 Release Notes
...ource array when its writeable flag is set to False. Support path-like objects for more functions The np.core.records.fromfile function now supports pathlib.Path and other path-like objects in addition to a file object. Furthermore, the n...
- NumPy 1.17.0 Release Notes
...ed for two timedelta64 operands The divmod operator now handles two timedelta64 operands, with type signature mm->qm. fromfile now takes an offset argument This function now takes an offset keyword argument for binary files, which specifi...
- NumPy 1.18.0 Release Notes
...generates random variates from the multivariate hypergeometric probability distribution. (gh-13794) Deprecations np.fromfile and np.fromstring will error on bad data In future numpy releases, the functions np.fromfile and np.fromstring...
- NumPy 1.19.0 Release Notes
...nctions: numpy.core.records.fromarrays numpy.core.records.fromrecords numpy.core.records.fromstring numpy.core.records.fromfile In future, 0 will not be special cased, and will be treated as an array length like any other integer. (gh-152...
- NumPy 1.19.5 Release Notes
...786: BUG: Raise recursion error during dimension discovery #17917: BUG: Fix subarray dtype used with too large count in fromfile #17918: BUG: ‘bool’ object has no attribute ‘ndim’ #17919: BUG: ensure _UFuncNoLoopError can be pickled #17924:...
- NumPy 1.20.0 Release Notes
...) Thread safe f2py callback functions Callback functions in f2py are now thread safe. (gh-16519) numpy.core.records.fromfile now supports file-like objects numpy.core.records.fromfile can now use file-like objects, for instance io.Bytes...
- NumPy 1.8.1 Release Notes
...k in lexsort gh-4170: fix native-only long long check in memoryviews gh-4187: Fix large file support on 32 bit gh-4152: fromfile: ensure file handle positions are in sync in python3 gh-4176: clang compatibility: Typos in conversion_utils gh...
- NumPy quickstart
..., ones, ones_like, empty, empty_like, arange, linspace, random.Generator.random, random.Generator.normal, fromfunction, fromfile Printing arrays When you print an array, NumPy displays it in a similar way to nested lists, but with the fo...
- numpy.char.chararray.tofile
...itten in ‘C’ order, independent of the order of a. The data produced by this method can be recovered using the function fromfile(). Parameters: fidfile or str or PathAn open file object, or a string containing a filename. sepstrSeparator...
- numpy.fromfile
...NumPy reference Routines and objects by topic Array creation routines numpy.fromfile...
- numpy.fromstring
...: ValueErrorIf the string is not the correct size to satisfy the requested dtype and count. See also frombuffer, fromfile, fromiter Examples >>> import numpy as np >>> np.fromstring('1 2', dtype=int, sep=' ') array([1, 2]) >>> np.f...
- numpy.matrix.tofile
...itten in ‘C’ order, independent of the order of a. The data produced by this method can be recovered using the function fromfile(). Parameters: fidfile or str or PathAn open file object, or a string containing a filename. sepstrSeparator...
- numpy.memmap.tofile
...itten in ‘C’ order, independent of the order of a. The data produced by this method can be recovered using the function fromfile(). Parameters: fidfile or str or PathAn open file object, or a string containing a filename. sepstrSeparator...
- numpy.ndarray.tofile
...itten in ‘C’ order, independent of the order of a. The data produced by this method can be recovered using the function fromfile(). Parameters: fidfile or str or PathAn open file object, or a string containing a filename. sepstrSeparator...
- numpy.rec.array
...copy of the data in the recarray (if copy=True) and use the new formats, names, and titles. If obj is a file, then call fromfile. Finally, if obj is an ndarray, then return obj.view(recarray), making a copy of the data if copy=True. Example...
- numpy.rec.fromfile
...NumPy reference NumPy’s module structure Record Arrays (numpy.rec) numpy.rec.fromfile...
- numpy.recarray.tofile
...itten in ‘C’ order, independent of the order of a. The data produced by this method can be recovered using the function fromfile(). Parameters: fidfile or str or PathAn open file object, or a string containing a filename. sepstrSeparator...
- Reading and writing files
...u4"), # # the sound data itself cannot be represented here: # it does not have a fixed size ]) header = np.fromfile(f, dtype=wave_header_dtype, count=1)[0] This .wav example is for illustration; to read a .wav file in real li...
- Standard array subclasses
...= np.memmap('newfile.dat', dtype=float, mode='w+', shape=1000) >>> a[10] = 10.0 >>> a[30] = 30.0 >>> del a >>> b = np.fromfile('newfile.dat', dtype=float) >>> print(b[10], b[30]) 10.0 30.0 >>> a = np.memmap('newfile.dat', dtype=float) >...
- Array API
...not be readable in text mode and an error will be raised if that occurs. All errors return NULL. PyObject *PyArray_FromFile(FILE *fp, PyArray_Descr *dtype, npy_intp num, char *sep) Construct a one-dimensional ndarray of a single type f...