module myna.core.metadata.file_scanpath
Define loading behavior for scan path files in databases
class Scanpath
File containing the scan path for a layer of a part in a build.
Implemented datatypes: - PeregrineDB
method Scanpath.__init__
__init__(datatype, part, layer)
method Scanpath.get_constant_z_slice_indices
get_constant_z_slice_indices() → tuple[list[tuple], polars.dataframe.frame.DataFrame]
If scanfile has multiple z-values, then find the slices of the scan segments that have constant z-values
Returns a list of tuples of the starting and ending row indices for the segments and the associated polars DataFrame. For example, if there are two equal "layers" of constant z-heights in the same scan path file with 200 layers, this would output ([(0,99), (100,199)], df)
method Scanpath.load_to_dataframe
load_to_dataframe()
Loads the Myna-formatted scan path to a polars dataframe
Current scan path format follows the 3DThesis scan path tab-separated format.
Example scan path:
Mode X(mm) Y(mm) Z(mm) Pmod tParam
1 203.349 28.520 2.550 0 0.000
0 203.438 28.478 2.550 1 0.821
0 203.361 28.514 2.550 0 0.077
This file was automatically generated via lazydocs.