diff --git a/CHANGELOG.md b/CHANGELOG.md index 12dfcfe..3ee037a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.8.2 (2025-01-06) +- Fixed: + - Fixed layout and printing issues (https://github.com/sandialabs/pyttb/pull/354) + - Fixed tutorial hierarchy (https://github.com/sandialabs/pyttb/pull/343) +- Improved: + - Improved `pyttb_utils` (https://github.com/sandialabs/pyttb/pull/353) + - Improved docs for coming from MATLAB (https://github.com/sandialabs/pyttb/pull/352) + - Improved shape support in data classes (https://github.com/sandialabs/pyttb/pull/348) + # v1.8.1 (2024-11-11) - Fixed: - Aligning comparison operator output for data classes (https://github.com/sandialabs/pyttb/pull/331) diff --git a/CITATION.bib b/CITATION.bib index 60b2527..2dca0d8 100644 --- a/CITATION.bib +++ b/CITATION.bib @@ -1,7 +1,7 @@ @misc{pyttb, author = {Dunlavy, Daniel M. and Johnson, Nicholas T. and others}, - month = nov, - title = {{pyttb: Python Tensor Toolbox, v1.8.1}}, + month = jan, + title = {{pyttb: Python Tensor Toolbox, v1.8.2}}, url = {https://github.com/sandialabs/pyttb}, - year = {2024} + year = {2025} } \ No newline at end of file diff --git a/docs/source/matlab/ktensor.rst b/docs/source/matlab/ktensor.rst index e645c27..f0f1a48 100644 --- a/docs/source/matlab/ktensor.rst +++ b/docs/source/matlab/ktensor.rst @@ -22,7 +22,5 @@ Methods +-----------------+----------------------+------------------------------------------------------------------------+ | ``tensor`` | ``to_tensor`` | ``X.to_tensor()`` | +-----------------+----------------------+------------------------------------------------------------------------+ - -MATLAB methods not included in ``pyttb`` -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -* ``viz`` \ No newline at end of file +| ``viz`` | ``viz`` | ``X.viz()`` | ++-----------------+----------------------+------------------------------------------------------------------------+ diff --git a/pyproject.toml b/pyproject.toml index 2d0f1c5..a6855dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ requires-python = ">=3.9" dependencies = [ "numpy<3.0,>=1.24", "numpy_groupies>0.11", - "scipy>1.9", + "scipy<1.15,>1.9", "matplotlib>3.7", ] diff --git a/pyttb/__init__.py b/pyttb/__init__.py index 0e8c2af..d238cec 100644 --- a/pyttb/__init__.py +++ b/pyttb/__init__.py @@ -6,7 +6,7 @@ from __future__ import annotations -__version__ = "1.8.1" +__version__ = "1.8.2" import warnings diff --git a/pyttb/ktensor.py b/pyttb/ktensor.py index 51aa0d5..3a27632 100644 --- a/pyttb/ktensor.py +++ b/pyttb/ktensor.py @@ -2226,7 +2226,7 @@ def update(self, modes: OneDArray, data: np.ndarray) -> ktensor: return self - def vis( # noqa: PLR0912, PLR0913 + def viz( # noqa: PLR0912, PLR0913 self, plots: Optional[Union[tuple, list]] = None, show_figure: bool = True, @@ -2295,9 +2295,9 @@ def vis( # noqa: PLR0912, PLR0913 >>> np.random.seed(1) >>> K = ttb.ktensor.from_function(np.random.random_sample, (2, 3, 10), 2) - Use plot K using default behavior K.vis() + Use plot K using default behavior K.viz() - >>> fig, axs = K.vis(show_figure=False) # doctest: +ELLIPSIS + >>> fig, axs = K.viz(show_figure=False) # doctest: +ELLIPSIS >>> plt.close(fig) Define a more realistic plot functions with x labels, @@ -2314,7 +2314,7 @@ def vis( # noqa: PLR0912, PLR0913 ... ax.semilogx(np.logspace(-2, 2, v.shape[0]), v) ... ax.set_xlabel("$E$, [kJ]") >>> plots = [mode_1_plot, mode_2_plot, mode_3_plot] - >>> fig, axs = K.vis( + >>> fig, axs = K.viz( ... show_figure=False, ... plots=plots, ... rel_widths=[1, 2, 3],