Assembly System Class

class dlmfg.core.assembly_system.AssemblySystem(assembly_type, assembly_kccs, assembly_kpis)[source]

Assembly System Class

Parameters
  • assembly_type – Type of assembly Single-Station/Multi-Station

  • assembly_kccs (int (required)) – Number of KCCs for the assembly

  • assembly_kpis (int (required)) – Number of Kpis for the assembly

class dlmfg.core.assembly_system.PartType(assembly_type, assembly_kccs, assembly_kpis, part_name, part_type, voxel_dim, voxel_channels, point_dim)[source]

Part System Class, inherits the Assembly System Class, additional parameters for this class include

Parameters
  • voxel_dim – Dimension of the voxel

  • voxel_dim – Dimension of the voxel Channel, single channel output - 1 or multi channel - 2,3 (use 1 for deviations in one direction, 2 or 3 if data for multiple deviation directions are present)

  • voxel_dim – Dimension of the voxel

The class contains two functions - get_nominal_cop and get_nominal_cop_database

get_nominal_cop(file_name)[source]

Import nominal cloud-of-point of the assembly from a text/csv file

Parameters

file_name (str (required)) – Name of the input file

Returns

numpy array of nominal COP

Return type

numpy.array [point_dim,3]

get_nominal_cop_database(conn_str, table_name)[source]

Import nominal cloud-of-point of the assembly from a SQL database assumes the table only contains three columns of the nominal COPs in order of the Node IDs

Parameters
  • conn_str (str (required)) – Connection String for Database

  • table_name (str (required)) – Name of table in the database

Returns

numpy array of dim points * 3

Return type

numpy.array [point_dim,3]

class dlmfg.core.assembly_system.VRMSimulationModel(assembly_type, assembly_kccs, assembly_kpis, part_name, part_type, voxel_dim, voxel_channels, point_dim, noise_level, noise_type='uniform', convergency_flag=1)[source]

VRM Simulation Model class inherits the part type class, additional parameters of this class include

Parameters
  • noise_level (float (required)) – The level of artificial noise to be added to simulated data, typically set to 0.1 mm from the measurement system class depending on the scanner

  • noise_type (str (optional)) – The type of noise to be added, can be Gaussian or uniform , for Gaussian noise_level is set as standard deviation and mean as zero for uniform the min and max are set -noise_level and +noise_level respectively

  • convergency_flag (int (optional)) – Flag to denote if the simulation model had converged while simulating, is set to 1 by default

The class contains one function kpi_calculator that needs to be defined by the user depending on the assembly output

kpi_calculator(cop_data, kpi_params=[])[source]

User defined function to calculate KPI from Cloud of Point Data [KPI]=f(Cop)

Parameters
  • cop_data (np_array [point_dim,3] (required)) – CoP data for a given sample

  • kpi_params (list (optional)) – Various parameters required to calculate the KPI, can be blank if no parameters are required to calculate KPI from CoP

Returns

list of multivariate KPIs for the given CoP

Return type

list