Skip to content

Commit 4463015

Browse files
authored
Merge branch 'main' into nick/link_check
2 parents 244069e + 589239b commit 4463015

File tree

6 files changed

+20
-13
lines changed

6 files changed

+20
-13
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# v1.8.2 (2025-01-06)
2+
- Fixed:
3+
- Fixed layout and printing issues (https://github.com/sandialabs/pyttb/pull/354)
4+
- Fixed tutorial hierarchy (https://github.com/sandialabs/pyttb/pull/343)
5+
- Improved:
6+
- Improved `pyttb_utils` (https://github.com/sandialabs/pyttb/pull/353)
7+
- Improved docs for coming from MATLAB (https://github.com/sandialabs/pyttb/pull/352)
8+
- Improved shape support in data classes (https://github.com/sandialabs/pyttb/pull/348)
9+
110
# v1.8.1 (2024-11-11)
211
- Fixed:
312
- Aligning comparison operator output for data classes (https://github.com/sandialabs/pyttb/pull/331)

CITATION.bib

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@misc{pyttb,
22
author = {Dunlavy, Daniel M. and Johnson, Nicholas T. and others},
3-
month = nov,
4-
title = {{pyttb: Python Tensor Toolbox, v1.8.1}},
3+
month = jan,
4+
title = {{pyttb: Python Tensor Toolbox, v1.8.2}},
55
url = {https://github.com/sandialabs/pyttb},
6-
year = {2024}
6+
year = {2025}
77
}

docs/source/matlab/ktensor.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,5 @@ Methods
2222
+-----------------+----------------------+------------------------------------------------------------------------+
2323
| ``tensor`` | ``to_tensor`` | ``X.to_tensor()`` |
2424
+-----------------+----------------------+------------------------------------------------------------------------+
25-
26-
MATLAB methods not included in ``pyttb``
27-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28-
* ``viz``
25+
| ``viz`` | ``viz`` | ``X.viz()`` |
26+
+-----------------+----------------------+------------------------------------------------------------------------+

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ requires-python = ">=3.9"
1212
dependencies = [
1313
"numpy<3.0,>=1.24",
1414
"numpy_groupies>0.11",
15-
"scipy>1.9",
15+
"scipy<1.15,>1.9",
1616
"matplotlib>3.7",
1717
]
1818

pyttb/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from __future__ import annotations
88

9-
__version__ = "1.8.1"
9+
__version__ = "1.8.2"
1010

1111

1212
import warnings

pyttb/ktensor.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2226,7 +2226,7 @@ def update(self, modes: OneDArray, data: np.ndarray) -> ktensor:
22262226

22272227
return self
22282228

2229-
def vis( # noqa: PLR0912, PLR0913
2229+
def viz( # noqa: PLR0912, PLR0913
22302230
self,
22312231
plots: Optional[Union[tuple, list]] = None,
22322232
show_figure: bool = True,
@@ -2295,9 +2295,9 @@ def vis( # noqa: PLR0912, PLR0913
22952295
>>> np.random.seed(1)
22962296
>>> K = ttb.ktensor.from_function(np.random.random_sample, (2, 3, 10), 2)
22972297
2298-
Use plot K using default behavior K.vis()
2298+
Use plot K using default behavior K.viz()
22992299
2300-
>>> fig, axs = K.vis(show_figure=False) # doctest: +ELLIPSIS
2300+
>>> fig, axs = K.viz(show_figure=False) # doctest: +ELLIPSIS
23012301
>>> plt.close(fig)
23022302
23032303
Define a more realistic plot functions with x labels,
@@ -2314,7 +2314,7 @@ def vis( # noqa: PLR0912, PLR0913
23142314
... ax.semilogx(np.logspace(-2, 2, v.shape[0]), v)
23152315
... ax.set_xlabel("$E$, [kJ]")
23162316
>>> plots = [mode_1_plot, mode_2_plot, mode_3_plot]
2317-
>>> fig, axs = K.vis(
2317+
>>> fig, axs = K.viz(
23182318
... show_figure=False,
23192319
... plots=plots,
23202320
... rel_widths=[1, 2, 3],

0 commit comments

Comments
 (0)