Module: IO
Reading data written by simulation codes: grid-information files
(<prefix>_info.txt) and column-oriented text files with densities and other
fields on the grid. See examples/analyze_data.py for a complete,
runnable example.
Module: Myio
This module provides functions to read and write data in different formats.
Currently supported formats: - Text files (.txt) with columnar data - Grid information files (_info.txt)
Planned features: - WDATA format support using Forbes’ python library
List of functions
- libnest.myio.readDimTxt(PATH, PREFIX)[source]
Reads data from the file
PREFIX_info.txtin locationPATH. It gets information about the grid size and returns them in a list.Note
Works for 1D, 2D, and 3D grids. A dimension not listed in the file defaults to 1 (a flat direction).