-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support of SkyCoord for the target property (#80)
* ✨ Implement SkyCoord support for js side * ✨ Implement SkyCoord support for python side * 🐛 Fix target support for jslink using shared_target traitlets * 📝 Update example 6 to fix target jslink behavior * 🐛 Fix multi-instances flickering * 🐛 Fix useless target when used in constructor * ✨ Implement coordinate string parsing using new coordinate_parser function * 📝 Add minor documentation for widget.js * 🚀 Add missing target getter type annotation * 🐛 Fix coordinate_parser.py splitter * ✅ Add tests for coordinate_parser.py and aladin target getter and setter * 👷 Add CI for automated python code testing * ✅ Add more testing cases for existing tests * 🐛 Fix initial target when frame is galactic * 🎨 Use a regex to detect if a string is an object name or a coordinate * 📝 Update CHANGELOG.md * 📝 Add _target and shared_target trait help & remove useless error in trait getter * 🎨 Fix python import order * 🐛 Fix missing event unsubscribe for shared_target * 🎨 Improve conditional structure for the target setter * 📝 Improve the meaning of a sentence in the changelog * 🎨 Improve target setter conditions * ✨ Add parsing support for coordinate string starting by J, G and B * ✅ Improve testing for new coordinate parsing functions * 📝 Change docstring format from sphinx to numpy * 🎨 Improve conditional structure for parse_coordinate_string function * fix: type annotations union for python <3.9 * docs: fix doctring style
- Loading branch information
1 parent
731bf99
commit 981833f
Showing
8 changed files
with
528 additions
and
39 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,25 @@ | ||
name: python-tests | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
python-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout branch" | ||
uses: actions/checkout@v4 | ||
- name: "Set up Python on Ubuntu" | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: "Python codestyle" | ||
run: | | ||
pip install ".[dev]" | ||
pip install pytest | ||
pytest . |
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
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
Oops, something went wrong.