Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: factor multiplier #5

Open
Ceveloper opened this issue Dec 10, 2024 · 0 comments
Open

Feature Request: factor multiplier #5

Ceveloper opened this issue Dec 10, 2024 · 0 comments

Comments

@Ceveloper
Copy link

I have a feature request: multiplying chosen metrics by a given factor.

The hydra configuration could include another default rule called coefficient.:

default_rules:
  order: min
  highlighting: ["\\bfseries{%s}", "\\underline{%s}"]
  default: "%s"
  precision: "%.3f"
  coefficient: 100

Then the function highlight_extrema() in highlighting.py could forward this coefficient factor and execute the multiplication:

def highlight_extrema(
    data: str | float | int,
    extrema: list[float | int],
    highlights: str,
    default: str,
    precision: str = "%.3f",
    coefficient: float = 1.0, 
) -> str

Thanks a lot for the amazing tool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant