astropy / astropy/astropy

Implement ``__format__`` for coordinates

Open
#1,719 0 comments 1 reaction 0 assignees View on GitHub
coordinates
Dominant language
Python
Stars
5.3k
Forks
2.2k
Avg merge
1d 18h
Merged PRs (30d)
74

Description

@mdboom suggested in #1296 that once `to_string` is merged for coordinate objects, we should implement `__format__`. I'm tagging this as 0.4.0, but if some adventurous soul does this very soon it could make 0.3.0.

cc @keflavich

Contributor guide

Open the contributing guide

Research direction

Locate the coordinate object implementation and review the to_string work referenced in #1296 before investigating existing string-formatting behavior. Check the coordinate-related tests and use them to define the expected __format__ behavior; done means coordinate objects support the requested formatting without regressing existing string output.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.