Skip to content

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
johentsch committed Dec 29, 2023
1 parent 86c5a6b commit 9d5ff19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ms3/utils/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5318,15 +5318,16 @@ def replace_boolean_mode_by_strings(df) -> pd.DataFrame:


def resolve_relative_keys(relativeroot, minor=False, logger=None):
"""Resolve nested relative keys, e.g. 'V/V/V' => 'VI'.
"""Resolve nested relative keys, e.g. 'V/V/V' => 'VI' if minor is False (default) or '#VI' if True.
Uses: :py:func:`rel2abs_key`, :py:func:`str_is_minor`
relativeroot : :obj:`str`
One or several relative keys, e.g. iv/v/VI (fourth scale degree of the fifth scale degree of the sixth scale
degree)
minor : :obj:`bool`, optional
Pass True if the last of the relative keys is to be interpreted within a minor context.
Pass True if the last of the relative keys is to be interpreted within a minor context, and therefore the
result.
"""
if logger is None:
logger = module_logger
Expand Down

0 comments on commit 9d5ff19

Please sign in to comment.