diff --git a/lmo/_lm.py b/lmo/_lm.py index 08ce3e61..e851ed28 100644 --- a/lmo/_lm.py +++ b/lmo/_lm.py @@ -193,8 +193,10 @@ def l_weights( if P_r.shape[0] < r: P_r = P_r[:r] - assert P_r.shape == (r, n) - return cast(npt.NDArray[T], P_r) + # ignore if r is larger that what's cached + if P_r.shape[0] == r: + assert P_r.shape == (r, n) + return cast(npt.NDArray[T], P_r) if sum(trim) == 0: diff --git a/poetry.lock b/poetry.lock index 8c6448c2..5e3494b8 100644 --- a/poetry.lock +++ b/poetry.lock @@ -140,13 +140,13 @@ files = [ [[package]] name = "exceptiongroup" -version = "1.1.1" +version = "1.1.2" description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" files = [ - {file = "exceptiongroup-1.1.1-py3-none-any.whl", hash = "sha256:232c37c63e4f682982c8b6459f33a8981039e5fb8756b2074364e5055c498c9e"}, - {file = "exceptiongroup-1.1.1.tar.gz", hash = "sha256:d484c3090ba2889ae2928419117447a14daf3c1231d5e30d0aae34f354f01785"}, + {file = "exceptiongroup-1.1.2-py3-none-any.whl", hash = "sha256:e346e69d186172ca7cf029c8c1d16235aa0e04035e5750b4b95039e65204328f"}, + {file = "exceptiongroup-1.1.2.tar.gz", hash = "sha256:12c3e887d6485d16943a309616de20ae5582633e0a2eda17f4e10fd61c1e8af5"}, ] [package.extras] @@ -394,13 +394,13 @@ files = [ [[package]] name = "mkdocs-material" -version = "9.1.17" +version = "9.1.18" description = "Documentation that simply works" optional = false python-versions = ">=3.7" files = [ - {file = "mkdocs_material-9.1.17-py3-none-any.whl", hash = "sha256:809ed68427fbab0330b0b07bc93175824c3b98f4187060a5c7b46aa8ae398a75"}, - {file = "mkdocs_material-9.1.17.tar.gz", hash = "sha256:5a076524625047bf4ee4da1509ec90626f8fce915839dc07bdae6b59ff4f36f9"}, + {file = "mkdocs_material-9.1.18-py3-none-any.whl", hash = "sha256:5bcf8fb79ac2f253c0ffe93fa181cba87718c6438f459dc4180ac7418cc9a450"}, + {file = "mkdocs_material-9.1.18.tar.gz", hash = "sha256:981dd39979723d4cda7cfc77bbbe5e54922d5761a7af23fb8ba9edb52f114b13"}, ] [package.dependencies] diff --git a/pyproject.toml b/pyproject.toml index b656fc67..cdc821d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "lmo" -version = "0.6.0" +version = "0.6.1" description = "L-Moments for robust statistics." authors = ["Joren Hammudoglu "] readme = "README.md"