hipscatalog_gen.utils._score_deps

_score_deps(score_expr, available)[source]

Return column names referenced in a score expression.

Only identifiers that exist in available are kept.

Parameters:
  • score_expr (str) – Score expression string.

  • available (List[str]) – List of available column names.

Returns:

List of column names used in the expression.

Return type:

List[str]