piec.analysis.utilities

Functions

create_measurement_filename(directory, ...)

Creates a unique filename for a measurement file by checking for identical filenames and prepending an index to the filename if an identical one already exists in the target directory.

interpolate_sparse_to_dense(x_sparse, y_sparse)

Transform sparse arrays of x and y coordinates into a dense array of y coordinates linearly interpolated over N=total_points evenly-spaced x values.

metadata_and_data_to_csv(metadata, data, path)

Convenience function that takes two arbitrary dataframes and writes them to a csv one below the other with a space in between.

standard_csv_to_metadata_and_data(path[, ...])

Convenience function that takes the piec standard 1xN metadata with data below and returns each as individual dataframes