Skip to content

Commit 5c0bafe

Browse files
authored
Merge branch 'main' into nick/fortran_ordering
2 parents d4d596f + 8bbd41f commit 5c0bafe

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
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+
+-----------------+----------------------+------------------------------------------------------------------------+

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
@@ -2250,7 +2250,7 @@ def update(self, modes: OneDArray, data: np.ndarray) -> ktensor:
22502250

22512251
return self
22522252

2253-
def vis( # noqa: PLR0912, PLR0913
2253+
def viz( # noqa: PLR0912, PLR0913
22542254
self,
22552255
plots: Optional[Union[tuple, list]] = None,
22562256
show_figure: bool = True,
@@ -2319,9 +2319,9 @@ def vis( # noqa: PLR0912, PLR0913
23192319
>>> np.random.seed(1)
23202320
>>> K = ttb.ktensor.from_function(np.random.random_sample, (2, 3, 10), 2)
23212321
2322-
Use plot K using default behavior K.vis()
2322+
Use plot K using default behavior K.viz()
23232323
2324-
>>> fig, axs = K.vis(show_figure=False) # doctest: +ELLIPSIS
2324+
>>> fig, axs = K.viz(show_figure=False) # doctest: +ELLIPSIS
23252325
>>> plt.close(fig)
23262326
23272327
Define a more realistic plot functions with x labels,
@@ -2338,7 +2338,7 @@ def vis( # noqa: PLR0912, PLR0913
23382338
... ax.semilogx(np.logspace(-2, 2, v.shape[0]), v)
23392339
... ax.set_xlabel("$E$, [kJ]")
23402340
>>> plots = [mode_1_plot, mode_2_plot, mode_3_plot]
2341-
>>> fig, axs = K.vis(
2341+
>>> fig, axs = K.viz(
23422342
... show_figure=False,
23432343
... plots=plots,
23442344
... rel_widths=[1, 2, 3],

0 commit comments

Comments
 (0)