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

Parse uncertainties #1615

Merged
merged 28 commits into from
Sep 15, 2023
Merged

Commits on Oct 14, 2022

  1. Parse uncertain numbers e.g. (1.0+/-0.2)e+03

    Enable Pint to consume uncertain quantities.
    
    Signed-off-by: [email protected]
    MichaelTiemannOSC committed Oct 14, 2022
    Configuration menu
    Copy the full SHA
    3e743a3 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2022

  1. Configuration menu
    Copy the full SHA
    a54c597 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2022

  1. Configuration menu
    Copy the full SHA
    7d2fada View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2022

  1. Fix up failures and errors found by test suite.

    Signed-off-by: MichaelTiemann <[email protected]>
    MichaelTiemannOSC committed Oct 19, 2022
    Configuration menu
    Copy the full SHA
    fc8564b View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2022

  1. Copy in changes from PR1596

    Signed-off-by: [email protected]
    MichaelTiemannOSC committed Oct 21, 2022
    Configuration menu
    Copy the full SHA
    c8fe27f View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2022

  1. Create modular uncertainty parser layer

    Based on feedback, tokenize uncertainties on top of default tokenizer, not instead of default tokenizer.
    
    Signed-off-by: MichaelTiemann <[email protected]>
    MichaelTiemannOSC committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    126a859 View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2022

  1. Resolving conflicts against pint 20.1

    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Dec 29, 2022
    Configuration menu
    Copy the full SHA
    d17b70c View commit details
    Browse the repository at this point in the history
  2. Fix conflict merge error

    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Dec 29, 2022
    Configuration menu
    Copy the full SHA
    f89e183 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2023

  1. Update util.py

    Fixes problems parsing currency symbols that also show up when dealing with uncertainties.
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    7198cf0 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2023

  1. Update pint_eval.py

    Handle negative numbers using uncertainty parenthesis notation.
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    e5004a5 View commit details
    Browse the repository at this point in the history
  2. Update pint_eval.py

    Ahem...use walrus operator for side-effect, not truth value.
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    a4a1fa5 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2023

  1. Fixed to work with both + and - e notation in the actually processing…

    … of the exponent, not just in the parsing of the exponent.
    
    i.e., (5.01+/-0.07)e+04
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Feb 18, 2023
    Configuration menu
    Copy the full SHA
    7938056 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2023

  1. Configuration menu
    Copy the full SHA
    4e551da View commit details
    Browse the repository at this point in the history
  2. Fix test suite failures

    Manually fix test_issue_1400.  Let other failures (which are not related to uncertainties) fail.
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed May 1, 2023
    Configuration menu
    Copy the full SHA
    caa5a1a View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2023

  1. Configuration menu
    Copy the full SHA
    f577436 View commit details
    Browse the repository at this point in the history
  2. Fix tokenizer merge error in pint/util.py

    When using pint_eval.tokenizer don't try to import tokenizer from pint.compat.
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    b810af6 View commit details
    Browse the repository at this point in the history
  3. Merge cleanup: pint_eval.py needs tokenize

    Clean up merge import error.
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    810a092 View commit details
    Browse the repository at this point in the history
  4. Make black happier

    Run `black` with default arguments to try to match whatever `black` wants to see in the CI/CD world.
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    5a4eb10 View commit details
    Browse the repository at this point in the history
  5. Make ruff happy

    Remove unused redefinition of tokenizer in toktest.py.  Also remove unnecessary import of pint_eval from top-level (it's imported inside the function definition that needs it).
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    945e93f View commit details
    Browse the repository at this point in the history
  6. Make ruff happier

    Fix ruff errors missed in previous commit.
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    397969d View commit details
    Browse the repository at this point in the history
  7. Update toktest.py

    Fix whitespace error created by `ruff --fix` that `black` didn't like.
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    ec4123c View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. Update test_util.py

    Follow deprecation of use_decimal from pint/util.py
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    032d972 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. Fix additional regressions in test suite

    If we have the uncertainties library loaded, go ahead and use the uncertainty_tokenizer by default.  This fixes problems with standard Pandas tests that expect the tokenizer to do the right thing without any special setup.
    
    Also, prevent exception when a loop in consensus_name_attr (pandas-dev/pandas/core/common.py(86))) tests equality with a None argument.   Otherwise the zero_or_nan test raises an exception.
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    772da53 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2023

  1. Update quantity.py

    Teach Pint's PlainQuantity about the Pandas pd.NA value so that ndim works.  Otherwise, it naively delegates to NumpyQuantity, which is the road to perdition for PintArrays.
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Jul 2, 2023
    Configuration menu
    Copy the full SHA
    3c54747 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2023

  1. Configuration menu
    Copy the full SHA
    10e07ea View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. Make babel a dependency for testbase

    Here's hoping this fixes the CI/CD problem with test_1400.
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    4e20d99 View commit details
    Browse the repository at this point in the history
  2. Update .readthedocs.yaml

    Removing `system_packages: false` as suggested by @keewis
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    f55b8de View commit details
    Browse the repository at this point in the history
  3. Fix failing tests

    Fix isnan to use unp.isnan as appropriate for both duck_array_type and objects of UFloat types.
    
    Fix a minor typo in pint/facets/__init__.py comment.
    
    In test_issue_1400, use decorators to ensure babel library is loaded when needed.
    
    pyproject.toml: revert change to testbase; we fixed with decorators instead.
    
    Signed-off-by: Michael Tiemann <[email protected]>
    MichaelTiemannOSC committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    00f08f3 View commit details
    Browse the repository at this point in the history