data module¶
Read and write data to or from file.
-
data_load(file_name, verbose=False)[source]¶ Load stored program objects from binary file.
- Parameters
file_name (str) – file to load
verbose (bool) – verbose information (default = False)
- Returns
loaded data
- Return type
object
-
data_read(file_name, x_column, y_column)[source]¶ Read ascii data file.
- Parameters
filename (str) – file to read
x_column (int) – column index for the x data (first column is 0)
y_column (int) – column index for the y data (first column is 0)
- Returns
x and y
- Return type
tuple(list, list)