ekomark package

Benchmark package for eko.

ekomark.pdfname(pid_or_name)[source]

Return pdf name.

Subpackages

Submodules

ekomark.plots module

Plotting tools to show the evolved PDF and the computed operators.

ekomark.plots.input_figure(theory, ops, pdf_name=None)[source]

Pretty-prints the setup to a figure.

Parameters:
  • theory (dict) – theory card

  • ops (dict) – operator card

  • pdf_name (str) – PDF name

Returns:

firstPage – figure

Return type:

matplotlib.pyplot.Figure

ekomark.plots.plot_dist(x, y, yerr, yref, title=None, oMx_min=0.01, oMx_max=0.5)[source]

Compare two distributions.

Generates a plot with 3 areas:

  • small x, i.e. log(x) as abscissa

  • linear x, i.e. with id(x) as abscissa

  • large x, i.e. with log(1-x) as abscissa

Parameters:
  • x (numpy.ndarray) – list of abscisses

  • y (numpy.ndarray) – computed list of ordinates

  • yerr (numpy.ndarray) – list of ordinate errors

  • yref (numpy.ndarray) – reference list of ordinates

  • title (str, optional) – additional overall title

  • oMx_min (float) – maximum value for the large x region, i.e. 1-x > 1 - oMx_min

  • oMx_max (float) – minimum value for the large x region, i.e. 1 - oMx_max > 1-x

Returns:

fig – created figure

Return type:

matplotlib.pyplot.figure

ekomark.plots.plot_operator(var_name, op, op_err, log_operator=True, abs_operator=True)[source]

Plot a single operator as heat map.

Parameters:
  • ret (dict) – DGLAP result

  • var_name (str) – operator name

  • log_operator (bool, optional) – plot on logarithmic scale

  • abs_operator (bool, optional) – plot absolute value (instead of true value)

Returns:

fig – created figure

Return type:

matplotlib.pyplot.figure

ekomark.plots.save_operators_to_pdf(path, theory, ops, me: EKO, skip_pdfs, rotate_to_evolution_basis: bool, qed: bool = False)[source]

Output all operator heatmaps to PDF.

Parameters:
  • path (str) – path to the plot

  • theory (dict) – theory card

  • ops (dict) – operator card

  • me (eko.output.Output) – DGLAP result

  • skip_pdfs (list) – PDF to skip

  • rotate_to_evolution_basis (bool) – plot operators in evolution basis

  • qed (bool) – plot operators in unified evolution basis, if the former is active

ekomark.version module