Skip to content

Implement late review suggestions on #14421 - #14653

Closed
eteq wants to merge 3 commits into
astropy:mainfrom
eteq:14421-update
Closed

eteq wants to merge 3 commits into
astropy:mainfrom
eteq:14421-update

Conversation

@eteq

@eteq eteq commented Apr 19, 2023 •

Copy link
Copy Markdown
Member

This is a quick follow-on from #14421 that is basically just what I wanted to suggest but then the PR got merged before I managed to submit my review. @mhvk is the interested party as the author of #14421 . I'm also marking it as not needing a changelog because it's really just a minor delta on 14421

Note that, perhaps unsurprisingly, EarthLocation does not work. But since I wrote the tests I figure we might as well include them as xfail since we want those tests to eventually work.

@eteq eteq added Affects-dev PRs and issues that do not impact an existing Astropy release uncertainty labels Apr 19, 2023
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.

  • Do the proposed changes actually accomplish desired goals?
  • Do the proposed changes follow the Astropy coding guidelines?
  • Are tests added/updated as required? If so, do they follow the Astropy testing guidelines?
  • Are docs added/updated as required? If so, do they follow the Astropy documentation guidelines?
  • Is rebase and/or squash necessary? If so, please provide the author with appropriate instructions. Also see "When to rebase and squash commits".
  • Did the CI pass? If no, are the failures related? If you need to run daily and weekly cron jobs as part of the PR, please apply the "Extra CI" label. Codestyle issues can be fixed by the bot.
  • Is a change log needed? If yes, did the change log check pass? If no, add the "no-changelog-entry-needed" label. If this is a manual backport, use the "skip-changelog-checks" label unless special changelog handling is necessary.
  • Is this a big PR that makes a "What's new?" entry worthwhile and if so, is (1) a "what's new" entry included in this PR and (2) the "whatsnew-needed" label applied?
  • Is a milestone set? Milestone must be set but we cannot check for it on Actions; do not let the green checkmark fool you.
  • At the time of adding the milestone, if the milestone set requires a backport to release branch(es), apply the appropriate "backport-X.Y.x" label(s) before merge.

@eteq

eteq commented Apr 19, 2023

Copy link
Copy Markdown
Member Author

Oh and I think the situation here is that the EarthLocation.from_geodetic requires #14423 to work, but EarthLocation.from_geocentric is a separate problem. But @mhvk might want to weigh in if you have more insight.

@pllim pllim added this to the v5.3 milestone Apr 19, 2023
@pllim
pllim requested review from eerovaher and mhvk April 19, 2023 17:37
@pllim

pllim commented Apr 19, 2023

Copy link
Copy Markdown
Member

pre-commit.ci autofix

# Ensure ndim>=1 so that comparison is done using the angle dtype.
# Otherwise, e.g., np.array(np.pi/2, 'f4') > np.pi/2 will yield True.
# (This feels like a bug -- see https://github.com/numpy/numpy/issues/23247)
# TODO: address this again when/if numpy 2.0 exists - see above issue

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pllim pllim added the testing label Apr 19, 2023
@mhvk

mhvk commented Apr 19, 2023

Copy link
Copy Markdown
Contributor

My sense would be to move this to 6.0; I really want to make the structured dtype work anyway, and we might then as well built that on top of this. I don't see much advantage to merging this now.

@pllim

pllim commented Apr 20, 2023

Copy link
Copy Markdown
Member

If you change the milestone, pls remove the Affects-dev label and rethink whether this needs a change log, because it would affect released code. FYI.

@mhvk mhvk removed the Affects-dev PRs and issues that do not impact an existing Astropy release label Apr 20, 2023
@mhvk

mhvk commented Apr 20, 2023

Copy link
Copy Markdown
Contributor

I'm 90% of the way with a PR for 6.0 that does structured dtypes (and which includes these commits)... Removed affects-dev...

@pllim pllim modified the milestones: v5.3, v6.0 Apr 20, 2023
@eteq

eteq commented Apr 21, 2023

Copy link
Copy Markdown
Member Author

I'm fine with leaving it to 6.0 !

@nstarman

nstarman commented Sep 6, 2023

Copy link
Copy Markdown
Member

Ping @eteq since 6.0 is in the works.

@mhvk

mhvk commented Sep 6, 2023

Copy link
Copy Markdown
Contributor

Ah, good to be reminded! I did actually return to my branch on allowing structured dtypes in Distribution, and have something that should be fairly close. I'll try to push a PR in the next few days (probably best if I first reorganize it a bit...).

@mhvk

mhvk commented Sep 8, 2023

Copy link
Copy Markdown
Contributor

See #15296 for a start of a fix...

@mhvk

mhvk commented Sep 11, 2023

Copy link
Copy Markdown
Contributor

See #15304 for what is actually needed to work with EarthLocation. Thankfully, quite minimal changes to EarthLocation itself.

@github-actions github-actions Bot added the Close? Tell stale bot that this issue/PR is stale label Sep 17, 2023
@github-actions

Copy link
Copy Markdown
Contributor

Hi humans 👋 - this pull request hasn't had any new commits for approximately 4 months. I plan to close this in 30 days if the pull request doesn't have any new commits by then.

In lieu of a stalled pull request, please consider closing this and open an issue instead if a reminder is needed to revisit in the future. Maintainers may also choose to add keep-open label to keep this PR open but it is discouraged unless absolutely necessary.

If this PR still needs to be reviewed, as an author, you can rebase it to reset the clock.

If you believe I commented on this pull request incorrectly, please report this here.

@pllim

pllim commented Sep 18, 2023

Copy link
Copy Markdown
Member

Superseded by #15304

@pllim pllim closed this Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Close? Tell stale bot that this issue/PR is stale coordinates testing uncertainty

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants