Skip to content

Commit

Permalink
Release commit created with Cranko.
Browse files Browse the repository at this point in the history
+++ cranko-release-info-v1
[[projects]]
qnames = ["pywwt", "npm"]
version = "1.1.1"
age = 2

[[projects]]
qnames = ["pywwt", "pypa"]
version = "0.11.1"
age = 0

+++
  • Loading branch information
cranko committed Jun 3, 2021
2 parents 9c455df + 6e37c7f commit bdb8cf6
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# pypa:pywwt 0.11.1 (2021-06-03)

- Add compatibility with the change in how the engine handles the
transparentBlack setting for FITS datasets. The code is written to maintain
compatibility with older versions of the engine as well (@imbasimba).
- Update some test-suite images to account for the changes in the new
WebGL-based fits rendering (@pkgw).
- Temporarily disable checking of outgoing links in the docs, since
Matplotlib currently has a problem that causes the check to fail (@pkgw).


# pypa:pywwt 0.11.0 (2021-02-09)

- First-draft support for the JupyterLab application. Rather then providing the
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ If you run into any issues, please open an issue [here](https://github.com/World
The AAS WorldWide Telescope (WWT) system, including pywwt, is a [.NET
Foundation][dnf] project. Work on WWT and pywwt has been supported by the
[American Astronomical Society][aas] (AAS), the US [National Science Foundation][nsf]
(grants [1550701] and [1642446]), the [Gordon and Betty Moore Foundation][moore], and
(grants [1550701], [1642446], and [2004840]), the [Gordon and Betty Moore Foundation][moore], and
[Microsoft][msft].

[nsf]: https://www.nsf.gov/
[1550701]: https://www.nsf.gov/awardsearch/showAward?AWD_ID=1550701
[1642446]: https://www.nsf.gov/awardsearch/showAward?AWD_ID=1642446
[2004840]: https://www.nsf.gov/awardsearch/showAward?AWD_ID=2004840
[moore]: https://www.moore.org/
[msft]: https://microsoft.com/
4 changes: 3 additions & 1 deletion ci/azure-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ jobs:
pip install $BASH_WORKSPACE/sdist/*.tar.gz
displayName: Install from sdist
# 2021 June: we used to finish with a `make linkcheck`, but Matplotlib's
# intersphinx file currently causes that step to fail in a way that we can't
# do anything about. We should put it back once that's straightened out.
- bash: |
set -euo pipefail
source activate-conda.sh
Expand All @@ -194,7 +197,6 @@ jobs:
pip install astropy-sphinx-theme
cd docs
make html
make linkcheck
displayName: Build docs
- job: codestyle
Expand Down
2 changes: 1 addition & 1 deletion pywwt/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version_info = (0, 11, 0, 'final', 0) # cranko project-version tuple
version_info = (0, 11, 1, 'final', 0) # cranko project-version tuple

_specifier_ = {'alpha': '.a', 'beta': '.b', 'candidate': '.rc', 'final': '', 'dev': '.dev'}

Expand Down
10 changes: 10 additions & 0 deletions pywwt/nbextension/static/interactive_figure/interactive_figure.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,17 @@ function loadImageLayer(layerInfo) {
stretchInfo['vmin'],
stretchInfo['vmax']);
wwtLayer.set_colorMapperName(stretchInfo['cmap']);

// old transparentBlack API, @wwtelescope/engine <= 7.10. With
// newer engines, this is a harmless no-op.
layer.getFitsImage().transparentBlack = false;

// new transparentBlack API
var imageset = layer.get_imageSet();
if (typeof imageset['get_fitsProperties'] !== 'undefined') {
imageset.get_fitsProperties().transparentBlack = false;
}

var settings = layerInfo['settings'];
for (name in settings) {
wwt_apply_json_message(wwt, {
Expand Down
9 changes: 9 additions & 0 deletions pywwt/nbextension/static/wwt_json_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,16 @@ function wwt_apply_json_message(wwt, msg) {
if (msg['version'] > layer._stretch_version) {
layer.setImageScalePhysical(msg['stretch'], msg['vmin'], msg['vmax']);
layer._stretch_version = msg['version'];

// old transparentBlack API, @wwtelescope/engine <= 7.10. With
// newer engines, this is a harmless no-op.
layer.getFitsImage().transparentBlack = false;

// new transparentBlack API
var imageset = layer.get_imageSet();
if (typeof imageset['get_fitsProperties'] !== 'undefined') {
imageset.get_fitsProperties().transparentBlack = false;
}
}

}
Expand Down
Binary file modified pywwt/tests/data/webengine_llvmpipe/image_layer_equ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pywwt/tests/data/webengine_osx/image_layer_equ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pywwt/tests/data/webengine_osx/image_layer_gal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pywwt/tests/data/webengine_windows/image_layer_equ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bdb8cf6

Please sign in to comment.