### Navigation

- index
- modules |
- CCHR 1.0 documentation »

# `Offense Rules`

class `src.offense_rules.``OffenseRules`(log)
  `convert_inc`(row, vars, ruleset, log_name)
  `convert_offenses`(row, rulesets, rule_order, _index=0, full_key=None, ground_truth={})

    @param rules: The crosswalk object containing all the RuleSets. @param rule_order: A list of tuples (x,y) where x = key to locate in RuleSet and y = name of RuleSet.

    > Length of list determines depth of recursion.

    @param skip_missing_coding: A list containing the names of offense variables to not code
      as missing if no match is found in crosswalk.

`src.``offense_rules`

  alias of `src.offense_rules`

### Navigation

- index
- modules |
- CCHR 1.0 documentation »