Skip to content

Commit 781df33

Browse files
nabobalisDeus1704wtbarnesayshihCadair
authored
New Coalignment API (#293)
* a better approach to dev * added decorator and incorporated suggestions * updated the docstring * added tests for majority of all funcs * adds how to guide few fixes in refs fixing the refs * temporary de-referencing funcs and methods * fix doc tree * added refs again importing funcs testing import i think final final nail explicit imports * Apply suggestions from code review Co-authored-by: Nabil Freij <nabil.freij@gmail.com> * code review and fixing minor mistakes * changed doc to ref * Update ref Co-authored-by: Nabil Freij <nabil.freij@gmail.com> * better linking lint * updated the api, now returns the map with updated metadata * updated the how_to_guide * docstring fix * first try at replacing old coalign * removing old coalignment completely, refs fixed, old example removed * fix the issue of method not being registered * fix the pixel pair issue * Apply suggestions from code review & testing bot Co-authored-by: Nabil Freij <nabil.freij@gmail.com> * fix the order of the reference and target maps * calm down pre-commit * fixed the method & added examples and tests * adding the eis file * Apply suggestions from code review Co-authored-by: Nabil Freij <nabil.freij@gmail.com> * made changes based on suggestions * pre-commit * Update docs/how_to_guide/using_the_coalignment_interface.rst Co-authored-by: Will Barnes <will.t.barnes@gmail.com> * rename all please * renamed coalignment to coalign, made example plot better, removed namedtuple and decorators from higher level initialization * here too * minor fix * marked remote test * testing by including the source * fixed the rst * updated the handling of cdelt values * fixed the plot bloc * added the figure test case1/2 and clean up * fixed the warning list * fix refs and clean * adding fixture * trying to suppress warnings * major changes; confirm affine, fixed test case, removed a guide * added a note * slightly changed the map observation and fig hash * fixed refs * trying to fix fig hash * fixed online test, added few more tests, updated coalignment.rst * trying automodule * docstring fix * fix the online fail by suppressing Astropy Warning * one last try * might need a better way * for 6.1.2 no comments * final try silly terminal * added the comprehensive changelog * fixed the changelog * Apply suggestions from code review Co-authored-by: Nabil Freij <nabil.freij@gmail.com> Co-authored-by: Will Barnes <will.t.barnes@gmail.com> * fix the test fails and internalized funcs * added the url for eis raster * forgot * clean up old raster and few lint fixes * added a check for astropy version * Nabil review * Apply suggestions from code review Co-authored-by: Albert Y. Shih <ayshih@gmail.com> * Addressed comments from Albert * fix import * Added second method * doc * bugfix * in-progress refactor of order of args * don't allow rotations or scaling for now * actually fetch image * fix example * update figure hashes * adjust imports * Tweaks to logging * Tweaks from Nabil * Overhaul of where stuff lives to get dict to store stuff in docs * Minor move around whitespace * improve the figure test * Redid some tests and added plate scale warning * Full disc tests * Update examples/aligning_aia_with_eis_maps.py Co-authored-by: Will Barnes <will.t.barnes@gmail.com> * Update sunkit_image/coalignment/tests/test_match_template.py Co-authored-by: Will Barnes <will.t.barnes@gmail.com> * Update sunkit_image/coalignment/tests/test_match_template.py Co-authored-by: Will Barnes <will.t.barnes@gmail.com> * Update sunkit_image/coalignment/interface.py Co-authored-by: Will Barnes <will.t.barnes@gmail.com> * Update sunkit_image/coalignment/interface.py Co-authored-by: Will Barnes <will.t.barnes@gmail.com> * Update sunkit_image/coalignment/interface.py Co-authored-by: Will Barnes <will.t.barnes@gmail.com> * Update sunkit_image/coalignment/interface.py Co-authored-by: Will Barnes <will.t.barnes@gmail.com> * Update sunkit_image/coalignment/interface.py Co-authored-by: Will Barnes <will.t.barnes@gmail.com> * Update sunkit_image/coalignment/interface.py Co-authored-by: Will Barnes <will.t.barnes@gmail.com> * Update sunkit_image/coalignment/interface.py Co-authored-by: Will Barnes <will.t.barnes@gmail.com> * Update sunkit_image/coalignment/interface.py Co-authored-by: Will Barnes <will.t.barnes@gmail.com> * precommit * Fix tests and improve pad_input handling * Fixed scale check * correct changelog PR * extra figure and minor edits to gallery example * minor reorganizaiton of coalignment API docs * reorganize how-to guide * docstring cleanup * tighten up test tolerance * Apply suggestions from code review Co-authored-by: Stuart Mumford <stuart@cadair.com> * [Fix] Emdashes are important for writing english -- vital even * Update figure env * Fix formatting * Rename section to Sunspot Tracking And Recognition --------- Co-authored-by: Jayraj Dulange <117574289+Deus1704@users.noreply.github.com> Co-authored-by: Deus1704 <jayraj.jayraj@iitgn.ac.in> Co-authored-by: Will Barnes <will.t.barnes@gmail.com> Co-authored-by: Albert Y. Shih <ayshih@gmail.com> Co-authored-by: Stuart Mumford <stuart@cadair.com>
1 parent 7d4bd93 commit 781df33

48 files changed

Lines changed: 989 additions & 1064 deletions

Some content is hidden

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

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
jobname:
3333
type: string
3434
docker:
35-
- image: cimg/python:3.12
35+
- image: cimg/python:3.13
3636
environment: TOXENV=<< parameters.jobname >>
3737
steps:
3838
- run: *no-backports
@@ -56,7 +56,7 @@ jobs:
5656
jobname:
5757
type: string
5858
docker:
59-
- image: cimg/python:3.12
59+
- image: cimg/python:3.13
6060
environment:
6161
TOXENV: << parameters.jobname >>
6262
GIT_SSH_COMMAND: ssh -i ~/.ssh/id_rsa_6464b6a8248237ca368fd4690777d921
@@ -97,13 +97,13 @@ workflows:
9797
matrix:
9898
parameters:
9999
jobname:
100-
- "py312-figure"
100+
- "py313-figure"
101101
- deploy-reference-images:
102102
name: baseline-<< matrix.jobname >>
103103
matrix:
104104
parameters:
105105
jobname:
106-
- "py312-figure"
106+
- "py313-figure"
107107
requires:
108108
- << matrix.jobname >>
109109
filters:

_typos.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ default.extend-ignore-identifiers-re = [
77
"iy",
88
"BA",
99
]
10+
11+
[default.extend-words]
12+
eis = "eis"

changelog/290.breaking.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Increased the minimum required versions:
55
- sunpy 7.0.0 (from 6.0.0)
66
- NumPy 1.26.0 (from 1.23.5)
77
- Astropy 6.1.0 (from 5.3.0)
8-
- SciPy 1.11.0 (from 1.10.1)
8+
- SciPy 1.12.0 (from 1.10.1)

changelog/293.breaking.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The previous coalignment API has been deleted and replaced with a new set of imports and functions.
2+
Please see this example: :ref:`sphx_glr_generated_gallery_aligning_aia_with_eis_maps.py`.

docs/code_ref/asda.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
ASDA (`sunkit_image.asda`)
2+
**************************
3+
4+
This package contains an implementation of the `Automated Swirl Detection
5+
Algorithm (ASDA) <https://ui.adsabs.harvard.edu/abs/2019ApJ...872...22L/abstract>`__.
6+
17
.. automodapi:: sunkit_image.asda

docs/code_ref/coalignment.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1+
Coalignment (`sunkit_image.coalignment`)
2+
****************************************
3+
4+
Routines to perform coalignment of solar images.
5+
16
.. automodapi:: sunkit_image.coalignment
7+
8+
.. automodapi:: sunkit_image.coalignment.interface
9+
:no-inheritance-diagram:
10+
:skip: coalign_map
11+
12+
.. automodapi:: sunkit_image.coalignment.register
13+
14+
.. automodapi:: sunkit_image.coalignment.match_template
15+
16+
.. automodapi:: sunkit_image.coalignment.phase_cross_correlation

docs/code_ref/enhance.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
Enhancement (`sunkit_image.enhance`)
2+
************************************
3+
4+
This package contains enhancement routines for solar physics data.
5+
16
.. automodapi:: sunkit_image.enhance

docs/code_ref/granule.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
Granule Detection (`sunkit_image.granule`)
2+
******************************************
3+
4+
This package contains functions that will segment images for granule detection.
5+
16
.. automodapi:: sunkit_image.granule

docs/code_ref/radial.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
Radial Enhancement (`sunkit_image.radial`)
2+
******************************************
3+
4+
This package contains functions that can be used to enhance the regions above a
5+
given radius.
6+
17
.. automodapi:: sunkit_image.radial

docs/code_ref/stara.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
Sunspot Tracking And Recognition (`sunkit_image.stara`)
2+
*******************************************************
3+
4+
This package contains an implementation of the `Sunspot Tracking And Recognition
5+
Algorithm (STARA) <https://doi.org/10.1007/s11207-009-9420-z>`__.
6+
17
.. automodapi:: sunkit_image.stara

0 commit comments

Comments
 (0)