data module

Read and write data to or from file.

data_load(file_name, verbose=False)

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)

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)

data_store(file_name, object_data)

Store program objects to binary file.

Parameters
  • file_name (str) – file to store

  • object_data (object) – data to store

main()

Main function.