post-processing package

class tomopal.post.analysis.Reciprocal(normal_file, reciprocal_file, stack_tres)[source]

Bases: object

__init__(normal_file, reciprocal_file, stack_tres)[source]
Parameters
  • normal_file – str: path to the normal measurements file

  • reciprocal_file – str: path to the reciprocal measurements file

  • stack_tres – float: Measurements repeatability (var %) threshold

parse()[source]

Reads the results text files and parses them. It will cut data above repeatability threshold. :return: resNR, varNR - two np arrays of pairs of resistance and repeatability error

tomopal.post.analysis.display(nor_rec)[source]
tomopal.post.analysis.export(file, normal_reciprocal)[source]

Export (n, 2) normal, reciprocal measurement to text file

tomopal.post.analysis.hist(nor_rec: numpy.array, bins: int, quantile: Optional[float] = None)[source]

Plot histogram :param nor_rec: np.array: Array (n, 2) containing n normal and reciprocal measurements :param quantile: float: Quantile threshold :param bins: int: Number of bins

tomopal.post.analysis.read_res(file)[source]

Reads ABEM type output text files. Lowers the columns and removes special characters.

Module contents