astropy / astropy/astropy

Transforming a frame to itself should raise an exception if an explicit self-transform isn't defined

Open
#7,207 1 comment 0 reactions 0 assignees View on GitHub
Bug coordinates needs-reconfirmation
Dominant language
Python
Stars
5.3k
Forks
2.2k
Avg merge
1d 18h
Merged PRs (30d)
74

Description

i.e:
```python
In [2]: HeliographicStonyhurst(10*u.deg, 10*u.deg, obstime="2011-02-01").transform_to(HeliographicStonyhurst(obstime="2011-01-01"))
Out[2]:

```
Should error as there is no transform in the graph for `HeliographicStonyhurst` > `HeliographicStonyhurst`

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the HeliographicStonyhurst example and tracing the transform_to entry point and transformation-graph lookup it exercises. Done means an implicit self-transform raises an exception when no explicit self-transform is defined, while the issue's example no longer returns a coordinate silently.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.