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

Pre-made useful/suggested formatters? #107

Open
jagerber48 opened this issue Jan 7, 2024 · 0 comments
Open

Pre-made useful/suggested formatters? #107

jagerber48 opened this issue Jan 7, 2024 · 0 comments

Comments

@jagerber48
Copy link
Owner

sciform could provide a small repository of useful/suggested formatters. For example:

si_formatter = Formatter(
    exp_mode="engineering",
    round_mode="sig_fig",
    exp_format="prefix",
    superscript=True,
    paren_uncertainty=True,
    pdg_sig_figs=True,
)

Alternatively, instead of providing formatters, there could be utility functions that set the global default settings to the corresponding suggested options.

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

No branches or pull requests

1 participant