Skip to content

Commit 91e5bdc

Browse files
committed
Merge branch 'master' into issue-1058
2 parents c8ca940 + 3cd6ab9 commit 91e5bdc

57 files changed

Lines changed: 468 additions & 241 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Require review from one maintainer for pushes to Development and Master
22

3-
* @untzag @ksunden @ddkohler @darienmorrow @kameyer226
3+
* @untzag @ksunden @ddkohler @darienmorrow @kameyer226 @rpm4

.github/workflows/python-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install wheel twine setuptools
24+
pip install twine build setuptools
2525
- name: Build and publish
2626
env:
2727
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2828
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2929
run: |
30-
python setup.py sdist bdist_wheel
30+
python -m build
31+
twine check dist/*
3132
twine upload dist/*

.github/workflows/python-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest, windows-latest]
15-
python-version: [3.8, 3.9, '3.10', 3.11]
15+
python-version: [3.11, 3.12, 3.13]
1616

1717
steps:
1818
- uses: actions/checkout@v4
@@ -25,6 +25,8 @@ jobs:
2525
python -m pip install --upgrade pip wheel setuptools
2626
python -m pip install --upgrade .[dev]
2727
- name: Test with pytest
28+
env:
29+
MPLBACKEND: "agg"
2830
run: |
2931
pytest --color=yes
3032

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 24.4.2 # Replace by any tag/version: https://github.com/psf/black/tags
3+
rev: 25.1.0 # Replace by any tag/version: https://github.com/psf/black/tags
44
hooks:
55
- id: black
66
language_version: python3 # Should be a command that runs python3.6+
77
args: ["--line-length", "99"]
88

99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v4.6.0
10+
rev: v6.0.0
1111
hooks:
1212
- id: trailing-whitespace
1313
exclude: datasets|.data$

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.9"
6+
python: "3.11"
77

88
python:
99
install:

CHANGELOG.md

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,43 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
55

66
## [Unreleased]
77

8+
## Changed
9+
- local version identifier uses only ASCII letters/numbers and periods (PEP 440)
10+
- `Data.create_constant`: allow kwargs to be passed to the constant creation
11+
12+
## [3.6.0]
13+
14+
### Added
15+
- `Data.norm_for_each`: easier norm-by-axis syntax
16+
- `kit.from_list_of_objects`: convenience method for grabbing an channel/variable/axis/etc. using multiple specifiers
17+
- `Data.get_var`: get variable object by index, name, or variable itself
18+
- `Data.get_axis`: get axis object by index, name, or variable itself
19+
- `Data.get_channel`: get channel object by index, name, or variable itself
20+
21+
### Fixed
22+
- quick2D works with contours on
23+
- quick2D works with `pixelated=False` (i.e. contourf)
24+
- `data.from_LabRAM`: small tweaks to deal with newly emerged test failure in python 3.11 tests
25+
26+
### Changed
27+
- various unit tests were altered to speed up CI
28+
- default colorbar is sampled at 4096 points (was 256)
29+
- packaging now done through pyproject.toml
30+
31+
## [3.5.5]
32+
33+
### Fixed
34+
- distribution information includes dependency setuptools (fixes conda feedstock)
35+
36+
## [3.5.4]
37+
38+
### Fixed
39+
- setup.py is now configured to allow numpy 2.x
40+
- contour/contourf artist overloads compatible with matplotlib 3.10
41+
42+
### Changed
43+
- actively supporting python 3.11-3.13
44+
845
## [3.5.3]
946

1047
### Added
@@ -18,7 +55,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
1855
- wt5 explore : fixed bug where data will not load interactively if directory is not cwd
1956
- constants in chopped data will inherit the units of the original data
2057

21-
## Changed
58+
### Changed
59+
- numpy 2.0 compatible
2260
- refactor of artists.quick1D and artists.quick2D
2361
- quick2D and quick1D will not force `autosave=True` if the number of figures is large. Instead, interactive plotting will be truncated if the number of figures is large.
2462
- artists now gets turbo colormap straight from matplotlib
@@ -396,7 +434,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
396434
### Added
397435
- initial release
398436

399-
[Unreleased]: https://github.com/wright-group/WrightTools/-/compare/3.5.3...master
437+
[Unreleased]: https://github.com/wright-group/WrightTools/-/compare/3.6.0...master
438+
[3.6.0]: https://github.com/wright-group/WrightTools/-/compare/3.5.5...3.6.0
439+
[3.5.5]: https://github.com/wright-group/WrightTools/compare/3.5.3...3.5.5
440+
[3.5.4]: https://github.com/wright-group/WrightTools/compare/3.5.3...3.5.4
400441
[3.5.3]: https://github.com/wright-group/WrightTools/compare/3.5.2...3.5.3
401442
[3.5.2]: https://github.com/wright-group/WrightTools/compare/3.5.1...3.5.2
402443
[3.5.1]: https://github.com/wright-group/WrightTools/compare/3.5.0...3.5.1

CONTRIBUTORS

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ http://wright.tools/en/stable/contributing.html
33

44
Maintainers (alphabetical by last name)
55
Daniel Kohler (@ddkohler)
6-
Darien Morrow <darienmorrow@gmail.com> (@darienmorrow)
7-
Kyle Sunden <sunden@wisc.edu> (@ksunden)
8-
Blaise Thompson <blaise@untzag.com> (@untzag)
96

107
Contributors (alphabetical by last name)
118
Kyle Czech (@kjczech)
9+
Ryan McDonnell (@rpm4)
10+
Kent Meyer (@kameyer226)
11+
Darien Morrow <darienmorrow@gmail.com> (@darienmorrow)
1212
Nathan Neff-Mallon (@neffmallon)
1313
Thomas Parker (@parkertomf)
14+
Kyle Sunden (@ksunden)
1415
Rachel Swedin (@RachelSwedin)
16+
Blaise Thompson <blaise@untzag.com> (@untzag)

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ Documentation at `wright.tools <http://wright.tools>`_.
3030
:target: https://doi.org/10.21105/joss.01141
3131

3232
.. image:: https://raw.githubusercontent.com/wright-group/WrightTools/master/logo/logo.png
33-
:scale: 25 %
33+
:width: 400
3434
:alt: WrightTools
3535
:align: center

WrightTools/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.5.3
1+
3.6.0

WrightTools/__version__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
if p.exists():
3333
with open(str(p)) as f:
3434
__branch__ = f.readline().rstrip().split(r"/")[-1]
35-
__version__ += "+" + __branch__
35+
# clean local verson (PEP 440)
36+
__version__ += (
37+
f"+{''.join(char if (char.isalnum() or char=='.') else '.' for char in __branch__)}"
38+
)
3639
else:
3740
__branch__ = None

0 commit comments

Comments
 (0)