exmecheva package

Subpackages

Submodules

exmecheva.Eva_ACT module

Axial compression test evaluation.

@author: MarcGebhardt

exmecheva.Eva_ACT.ACT_single(prot_ser, paths, mfile_add='', log_scopt={'logfp': None, 'logopt': True, 'output_lvl': 1, 'printopt': False}, plt_scopt={'clear': True, 'close': True, 's_types': ['pdf'], 'save': True, 'show': True, 'tight': True})[source]

Evaluate single axial compression test measurement form protocol table and path collection. Using common options wich are overwritten by protocol variables starting with ‘OPT_’. Produce evaluated measurements, material parameters and plots and safe them as table (.csv), unstructured database (.h5) and document (.pdf), using the designation of the specimen for distinction. Procedure:

  • 1: Read in options and presetting

  • 2: Determining geometrical values

  • 3: Read in measurements (conventional and optical (optinal))

  • 4: Merging measurements (time offset of conventional to optical

    (if available), downsampling and merging)

  • 5: Determine evaluation space (start and end)

  • 6: Evaluation (curves (stress/strain), importent points on curves,

    elastic moduli (different types implemented))

  • 7: Generating output (tables, database and plots)

Parameters
  • prot_ser (pd.Series) –

    Input data as pandas series with specimen information (identifier, origin, geometrical data,

    assessment codes, evaluation options).

  • paths (pd.DataFrame) –

    Path collection for in- and output paths. Needs indexes:

    • ”opts”: Common evaluation options

    • ”prot”: Protocol

    • ”meas”: Conventional measured data

    • ”dic”: Optical measured data

    • ”out”: Output

  • mfile_add (string, optional) – Suffix of variants of measurements (p.E. diffferent moistures [“A”,”B”,…]). The default is ‘’.

  • log_scopt (dict, optional) –

    Options for custom logging. Determining file path, output level (0=none, 1=normal, 2=special), logging enabled and printing enabled. The default is {‘logfp’:None, ‘output_lvl’: 1,

    ’logopt’:True, ‘printopt’:False}.

  • plt_scopt (dict, optional) –

    Options for plotting. The default is {‘tight’:True, ‘show’:True,

    ’save’:True, ‘s_types’:[“pdf”], ‘clear’:True, ‘close’:True}.

Raises
  • ValueError – Input value not correct.

  • NotImplementedError – Method not implemented.

Yields
  • timings (pd.Series) – Timings of procedure steps.

  • cout (string) – Special text output for control purposes.

exmecheva.Eva_ATT module

Axial tensile test evaluation.

@author: MarcGebhardt

exmecheva.Eva_ATT.ATT_single(prot_ser, paths, mfile_add='', log_scopt={'logfp': None, 'logopt': True, 'output_lvl': 1, 'printopt': False}, plt_scopt={'clear': True, 'close': True, 's_types': ['pdf'], 'save': True, 'show': True, 'tight': True})[source]

Evaluate single axial tensile test measurement form protocol table and path collection. Using common options wich are overwritten by protocol variables starting with ‘OPT_’. Produce evaluated measurements, material parameters and plots and safe them as table (.csv), unstructured database (.h5) and document (.pdf), using the designation of the specimen for distinction. Procedure:

  • 1: Read in options and presetting

  • 2: Determining geometrical values

  • 3: Read in measurements (conventional and optical (optinal))

  • 4: Merging measurements (time offset of conventional to optical

    (if available), downsampling and merging)

  • 5: Determine evaluation space (start and end)

  • 6: Evaluation (curves (stress/strain), importent points on curves,

    elastic moduli (different types implemented))

  • 7: Generating output (tables, database and plots)

Parameters
  • prot_ser (pd.Series) –

    Input data as pandas series with specimen information (identifier, origin, geometrical data,

    assessment codes, evaluation options).

  • paths (pd.DataFrame) –

    Path collection for in- and output paths. Needs indexes:

    • ”opts”: Common evaluation options

    • ”prot”: Protocol

    • ”meas”: Conventional measured data

    • ”dic”: Optical measured data

    • ”out”: Output

  • mfile_add (string, optional) – Suffix of variants of measurements (p.E. diffferent moistures [“A”,”B”,…]). The default is ‘’.

  • log_scopt (dict, optional) –

    Options for custom logging. Determining file path, output level (0=none, 1=normal, 2=special), logging enabled and printing enabled. The default is {‘logfp’:None, ‘output_lvl’: 1,

    ’logopt’:True, ‘printopt’:False}.

  • plt_scopt (dict, optional) –

    Options for plotting. The default is {‘tight’:True, ‘show’:True,

    ’save’:True, ‘s_types’:[“pdf”], ‘clear’:True, ‘close’:True}.

Raises
  • ValueError – Input value not correct.

  • NotImplementedError – Method not implemented.

Yields
  • timings (pd.Series) – Timings of procedure steps.

  • cout (string) – Special text output for control purposes.

exmecheva.Eva_TBT module

Three point bending test evaluation.

@author: MarcGebhardt

exmecheva.Eva_TBT.TBT_single(prot_ser, paths, mfile_add='', log_scopt={'logfp': None, 'logopt': True, 'output_lvl': 1, 'printopt': False}, plt_scopt={'clear': True, 'close': True, 's_types': ['pdf'], 'save': True, 'show': True, 'tight': True})[source]

Evaluate single three point bending measurement form protocol table and path collection. Using common options wich are overwritten by protocol variables starting with ‘OPT_’. Produce evaluated measurements, material parameters and plots and safe them as table (.csv), unstructured database (.h5) and document (.pdf), using the designation of the specimen for distinction. Procedure:

  • 1: Read in options and presetting

  • 2: Determining geometrical values

  • 3: Read in measurements (conventional and optical (optinal))

  • 4: Merging measurements (time offset of conventional to optical

    (if available), downsampling and merging)

  • 5: Determine evaluation space (start and end)

  • 6: Evaluation (curves (stress/strain), importent points on curves,

    elastic moduli (different types implemented))

  • 7: Generating output (tables, database and plots)

Parameters
  • prot_ser (pd.Series) –

    Input data as pandas series with specimen information (identifier, origin, geometrical data,

    assessment codes, evaluation options).

  • paths (pd.DataFrame) –

    Path collection for in- and output paths. Needs indexes:

    • ”opts”: Common evaluation options

    • ”prot”: Protocol

    • ”meas”: Conventional measured data

    • ”dic”: Optical measured data

    • ”out”: Output

  • mfile_add (string, optional) – Suffix of variants of measurements (p.E. diffferent moistures [“A”,”B”,…]). The default is ‘’.

  • log_scopt (dict, optional) –

    Options for custom logging. Determining file path, output level (0=none, 1=normal, 2=special), logging enabled and printing enabled. The default is {‘logfp’:None, ‘output_lvl’: 1,

    ’logopt’:True, ‘printopt’:False}.

  • plt_scopt (dict, optional) –

    Options for plotting. The default is {‘tight’:True, ‘show’:True,

    ’save’:True, ‘s_types’:[“pdf”], ‘clear’:True, ‘close’:True}.

Raises
  • ValueError – Input value not correct.

  • NotImplementedError – Method not implemented.

Yields
  • timings (pd.Series) – Timings of procedure steps.

  • cout (string) – Special text output for control purposes.

exmecheva.eva module

Functionality for selection of evaluation (single, series or complete) and packing of HDF-file.

@author: MarcGebhardt .. todo:: - series only work with output_lvl>=1

exmecheva.eva.selector(eva_single_func, option, combpaths, no_stats_fc, var_suffix=[''], ser='', des='', out_path='', prot_rkws={'header': 11, 'index_col': 0, 'skiprows': range(12, 13)}, log_scopt={'logfp': None, 'logopt': True, 'output_lvl': 1, 'printopt': False}, plt_scopt={'clear': True, 'close': True, 's_types': ['pdf'], 'save': True, 'show': True, 'tight': True})[source]

Selects suitable evaluation method acc. to choosen option.

Parameters
  • eva_single_func (function) – Function to perform single evaluation.

  • option (str) –

    Evaluation option. Possible are:
    • ’single’: Evaluate single measurement

    • ’series’: Evaluate series of measurements (see protocol table)

    • ’complete’: Evaluate series of series

    • ’pack’: Pack all evaluations into single hdf-file (only results and evaluated measurement)

    • ’pack-all’: Pack all evaluations into single hdf-file with (all results, Warning: high memory requirements!)

  • combpaths (pandas.DataFrame) – Combined paths for in- and output of evaluations.

  • no_stats_fc (list of str) – Assessment codes for excluding from evaluation (searched in protocol variable “Failure_code”).

  • var_suffix (list of str, optional) – Suffix of variants of measurements (p.E. different moistures [“A”,”B”,…]). The default is [“”].

  • ser (str, optional) – Accessor for series. Must be as index in combpaths. The default is ‘’.

  • des (str, optional) – Accessor for/Designation of measurement/specimen. Must be as index in combpaths. The default is ‘’.

  • out_path (str or Path, optional) – Additional outputpath for packed evaluation (hdf file). The default is ‘’.

  • prot_rkws (dict, optional) – Dictionary for reading protocol. Must be keyword ind pandas.read_excel. The default is dict(header=11, skiprows=range(12,13),index_col=0).

Raises

NotImplementedError – Option not implemented.

Return type

None.

exmecheva.eva.series(eva_single_func, paths, no_stats_fc, var_suffix, prot_rkws, output_lvl=1, log_scopt={'logfp': None, 'logopt': True, 'output_lvl': 1, 'printopt': False}, plt_scopt={'clear': True, 'close': True, 's_types': ['pdf'], 'save': True, 'show': True, 'tight': True})[source]

Evaluates a series of single evaluations (one after an other).

Parameters
  • eva_single_func (function) – Function to perform single evaluation.

  • paths (pandas.Series) –

    Paths for evaluation:
    • ’prot’: path to protocoll excel table

    • ’opts’: path to common options as json file

    • ’meas’: path to measurement (conventional) file location

    • ’dic’: path to measurement (optical) file location

    • ’out’: path for output files

  • no_stats_fc (list of strings) –

    No evaluation if in protocoll.Failure_code. Example: no_stats_fc = [‘A01.1’,’A01.2’,’A01.3’, ‘A02.3’,

    ’B01.1’,’B01.2’,’B01.3’, ‘B02.3’, ‘C01.1’,’C01.2’,’C01.3’, ‘C02.3’, ‘D01.1’,’D01.2’,’D01.3’, ‘D02.3’, ‘F01.1’,’F01.2’,’F01.3’, ‘F02.3’]

  • var_suffix (string) – Suffix for variant of measurement (p.E. different moistures [“A”,”B”,…]).

  • prot_rkws (dict) – Dictionary for reading protocol. Must be keyword ind pandas.read_excel.

  • output_lvl (int, optional) – Output level (0: no output, 1: only necessary, 2: all). The default is 1.

Return type

None.

Module contents