forked from dendrograms/astrodendro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
301 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: ".github/workflows" | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
actions: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
changelog: | ||
exclude: | ||
authors: | ||
- pre-commit-ci | ||
categories: | ||
- title: Bug Fixes | ||
labels: | ||
- bug | ||
- title: New Features | ||
labels: | ||
- enhancement | ||
- title: Documentation | ||
labels: | ||
- Documentation | ||
- title: Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This workflow takes the GitHub release notes an updates the changelog on the | ||
# main branch with the body of the release notes, thereby keeping a log in | ||
# the git repo of the changes. | ||
|
||
name: "Update Changelog" | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
ref: main | ||
|
||
- name: Update Changelog | ||
uses: stefanzweifel/changelog-updater-action@a938690fad7edf25368f37e43a1ed1b34303eb36 # v1.12.0 | ||
with: | ||
release-notes: ${{ github.event.release.body }} | ||
latest-version: ${{ github.event.release.name }} | ||
path-to-changelog: CHANGES.md | ||
|
||
- name: Commit updated CHANGELOG | ||
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1 | ||
with: | ||
branch: main | ||
commit_message: Update CHANGELOG | ||
file_pattern: CHANGES.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
## v0.3.1 - 2024-11-15 | ||
|
||
<!-- Release notes generated using configuration in .github/release.yml at main --> | ||
### What's Changed | ||
|
||
#### Bug Fixes | ||
|
||
* Fix compatibility of interactive viewer with recent versions of Matplotlib by @astrofrog in https://github.com/dendrograms/astrodendro/pull/202 | ||
|
||
#### Other Changes | ||
|
||
* Bump actions/checkout from 4.2.0 to 4.2.2 in /.github/workflows in the actions group by @dependabot in https://github.com/dendrograms/astrodendro/pull/201 | ||
|
||
### New Contributors | ||
|
||
* @dependabot made their first contribution in https://github.com/dendrograms/astrodendro/pull/201 | ||
|
||
**Full Changelog**: https://github.com/dendrograms/astrodendro/compare/v0.3.0...v0.3.1 | ||
|
||
## v0.3.0 - 2024-11-15 | ||
|
||
<!-- Release notes generated using configuration in .github/release.yml at main --> | ||
### What's Changed | ||
|
||
* update "Iterable" import for Python versions > 3.9 by @nbrunett in https://github.com/dendrograms/astrodendro/pull/184 | ||
* Fix viewer in Python 3 by @indebetouw in https://github.com/dendrograms/astrodendro/pull/181 | ||
* Remove np.int by @keflavich in https://github.com/dendrograms/astrodendro/pull/179 | ||
* h5py removed .value after v3 by @indebetouw in https://github.com/dendrograms/astrodendro/pull/182 | ||
* Update package infrastructure by @astrofrog in https://github.com/dendrograms/astrodendro/pull/186 | ||
* Update plot.py to pass subtree to get_lines by @tonywong94 in https://github.com/dendrograms/astrodendro/pull/168 | ||
* Fix for changes between astropy 5.2.2 and 5.3.1 by @ajrigby in https://github.com/dendrograms/astrodendro/pull/192 | ||
* Fix tests/continuous integration by @astrofrog in https://github.com/dendrograms/astrodendro/pull/193 | ||
* WCSAxes import fix by @Parkerwise in https://github.com/dendrograms/astrodendro/pull/198 | ||
* Update infrastructure and fix compatibility with Numpy 2.0 by @astrofrog in https://github.com/dendrograms/astrodendro/pull/200 | ||
|
||
### New Contributors | ||
|
||
* @nbrunett made their first contribution in https://github.com/dendrograms/astrodendro/pull/184 | ||
* @indebetouw made their first contribution in https://github.com/dendrograms/astrodendro/pull/181 | ||
* @tonywong94 made their first contribution in https://github.com/dendrograms/astrodendro/pull/168 | ||
* @ajrigby made their first contribution in https://github.com/dendrograms/astrodendro/pull/192 | ||
* @Parkerwise made their first contribution in https://github.com/dendrograms/astrodendro/pull/198 | ||
|
||
**Full Changelog**: https://github.com/dendrograms/astrodendro/compare/v0.2.0...v0.3.0 | ||
|
||
## 0.2.0 (2016-09-29) | ||
|
||
- Make sure that calling structure_at with an array, list, or tuple all behave the same. [#98] | ||
|
||
- Added support for linked scatter plots and multiple selections. [#104, #105, #109, #136] | ||
|
||
- Added support for custom functions to define what a 'neighbor' is. [#108] | ||
|
||
- Fixed a bug that caused the interactive viewer when showing a dendrogram loaded from a file. [#106, #110] | ||
|
||
- Added a 'prune' method to prune dendrograms after computing them. [#111] | ||
|
||
- Added support for brightness temperatures in Kelvin. [#112] | ||
|
||
- Cache/memoize catalog statistics. [#115] | ||
|
||
- Make sure that periodic boundaries (e.g. longitude) are properly supported. [#121] | ||
|
||
- Added progress bar for catalog computation. [#127] | ||
|
||
- Better support for image WCS. [#126, #137] | ||
|
||
- Improve the performance of dendrogram loading. [#131] | ||
|
||
- Include dendrogram parameters in HDF5 files. [#142, #145] | ||
|
||
- Give HDUs names in FITS output. [#144] | ||
|
||
|
||
## 0.1.0 (2013-11-09) | ||
|
||
Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import pytest | ||
import numpy as np | ||
|
||
import matplotlib.pyplot as plt | ||
from ..dendrogram import Dendrogram | ||
from matplotlib.backend_bases import MouseEvent | ||
|
||
|
||
DATA = np.array([[1, 3, 4, 4, 1, 4], | ||
[1, 2, 3, 2, 1, 3], | ||
[2, 1, 1, 3, 1, 2], | ||
[1, 1, 1, 1, 1, 1], | ||
[2, 3, 2, 1, 1, 2], | ||
[2, 3, 5, 3, 1, 1]]) | ||
|
||
|
||
def test_viewer(capsys): | ||
|
||
original_backend = plt.get_backend() | ||
|
||
try: | ||
plt.switch_backend('qtagg') | ||
except ImportError: | ||
pytest.skip("This test requires Qt to be installed") | ||
|
||
d = Dendrogram.compute(DATA) | ||
viewer = d.viewer() | ||
|
||
plt.show(block=False) | ||
|
||
cb = viewer.fig.canvas.callbacks | ||
|
||
cb.process('button_press_event', MouseEvent('button_press_event', viewer.fig.canvas, 660, 520, 1)) | ||
cb.process('button_press_event', MouseEvent('button_press_event', viewer.fig.canvas, 890, 800, 1)) | ||
cb.process('button_press_event', MouseEvent('button_press_event', viewer.fig.canvas, 700, 700, 1)) | ||
|
||
plt.switch_backend(original_backend) | ||
|
||
captured = capsys.readouterr() | ||
assert captured.out == "" | ||
assert captured.err == "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.