ekomark.data package

EKO database configuration.

ekomark.data.update_runcards(theory: Dict[str, Any] | TheoryCard, operator: Dict[str, Any] | OperatorCard)[source]

Update legacy runcards.

This function is mainly defined for compatibility with the old interface. Prefer direct usage of Legacy in new code.

Consecutive applications of this function yield identical results:

cards = update(theory, operator)
assert update(*cards) == cards

Submodules

ekomark.data.db module

Database tables.

class ekomark.data.db.Operator(**kwargs)[source]

Bases: Base

Operator cards table.

interpolation_is_log
interpolation_polynomial_degree
interpolation_xgrid
debug_skip_non_singlet
debug_skip_singlet
ev_op_max_order
ev_op_iterations
mugrid
backward_inversion
polarized
time_like
atime
ctime
hash
mtime
uid

ekomark.data.operators module

Operator card configurations.

ekomark.data.operators.build(update=None)[source]

Generate all operator card updates.

Parameters:

update (dict) – base modifiers

Returns:

cards – list of update

Return type:

list(dict)

ekomark.data.operators.load(session, updates)[source]

Load operator records from the DB.

Parameters:
  • session (sqlalchemy.session.Session) – DB ORM session

  • updates (dict) – modifiers

Returns:

cards – list of records

Return type:

list(dict)