0.31.1
0.31.1 (2024-01-06)
Removed
-
[BREAKING] Removed the
SciNumUnc
class. Now theSciNum
class can be used with an optional second positional argument to specify the uncertainty associated with a number. -
[BREAKING] Remove separator configuration from the FSML. These options made the FSML to cumbersome and led to confusing (if not incorrect) conflicts with the round mode symbol. Now all separator configuration needs to be done by setting the global format options or using the global format options context manager. [#29]
Added
- Added annotated examples demonstrating the FSML.
- Added more documentation for contributing developers.
- Added `pre-commit (https://pre-commit.com/) configuration.
Changed
-
[BREAKING] Renamed multiple options.
top_dig_place
renamed toleft_pad_dec_place
.superscript_exp
renamed tosuperscript
.bracket_unc
renamed toparen_uncertainty
.bracket_unc_remove_seps
renamed to
paren_uncertainty_separators
. This change is associated with a
a reversal of the Boolean logic on the option.val_unc_match_widths
renamed toleft_pad_matching
.unc_pm_whitespace
renamed topm_whitespace
.
-
[BREAKING] Previously specifying any left pad decimal place using the
sciform
FSML resulted in settingleft_pad_matching=True
so thatprint(f"{SciNum(123.456, 0.789):0}")
resulted in"123.456 ± 000.789"
. Now the FSML has no impact onleft_pad_matching
. Now, similar to many other options, the global setting forleft_pad_matching
will always be used when formatting using the FSML. Under the default global options (left_pad_matching=False
)print(f"{SciNum(123.456, 0.789):0}")
results in"123.456 ± 0.789"
. -
Implemented ruff linting and formatting in codebase and integration automation.
-
Refactored code for adding separators.
-
Refactored formatting and formatting utilities to simplify functions and make the algorithm easier to follow.
-
More aggressively filter JetBrains
.idea/
folder from version control.
Fixed
- Fixed a bug involving removing separators in parentheses uncertainty mode when at least one of the value and uncertainty were non-finite.
- Fixed a typo that prevented pushing
0.31.0
readme to pypi.