Skip to content

Removed OrderedDict from time in formats.py - #15491

Merged
taldcroft merged 5 commits into
astropy:mainfrom
olintoeduardo:removeOrderedDictFromTime
Mar 26, 2024
Merged

taldcroft merged 5 commits into
astropy:mainfrom
olintoeduardo:removeOrderedDictFromTime

Conversation

@olintoeduardo

@olintoeduardo olintoeduardo commented Oct 17, 2023 •

Copy link
Copy Markdown
Contributor

Removed OrderedDict from astropy/time/formats.py and replaced with dict.

Description

This pull request is to address the issue #10888 to remove OrderedDict from the project and replace with dict. This pull request addresses this to the Time module, and simply makes 3 changes to the formats.py file.

Address part of #10888

@github-actions github-actions Bot added the time label Oct 17, 2023
@github-actions

github-actions Bot commented Oct 17, 2023 •

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 instructions for rebase and squash.
  • 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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Welcome to Astropy 👋 and congratulations on your first pull request! 🎉

A project member will respond to you as soon as possible; in the meantime, please have a look over the Checklist for Contributed Code and make sure you've addressed as many of the questions there as possible.

If you feel that this pull request has not been responded to in a timely manner, please send a message directly to the development mailing list. If the issue is urgent or sensitive in nature (e.g., a security vulnerability) please send an e-mail directly to the private e-mail [email protected].

@github-actions

Copy link
Copy Markdown
Contributor

👋 Thank you for your draft pull request! Do you know that you can use [ci skip] or [skip ci] in your commit messages to skip running continuous integration tests until you are ready?

@pllim

pllim commented Oct 17, 2023

Copy link
Copy Markdown
Member

Python 3.12 with remote data and dev version of key dependencies failures are unrelated.

@pllim

pllim commented Oct 17, 2023

Copy link
Copy Markdown
Member

codecov upload for PR can also be flaky and failed here, so I won't worry about the red coverage report either.

@pllim
pllim requested a review from mhvk October 17, 2023 15:40
@pllim

pllim commented Oct 17, 2023

Copy link
Copy Markdown
Member

I cannot decide if a change log is needed or not so I'll defer to subpackage maintainers. Thanks!

@olintoeduardo
olintoeduardo marked this pull request as ready for review October 23, 2023 14:54
@pllim

pllim commented Oct 23, 2023

Copy link
Copy Markdown
Member

Thanks! Given the impending feature freeze, I took the liberty to push a couple of commits directly here as part of my general review.

But I'll leave it to the sub-package maintainers to do a final review.

Please squash and merge

@saimn saimn modified the milestones: v6.0, v6.1 Oct 28, 2023
@olintoeduardo

Copy link
Copy Markdown
Contributor Author

Hi! Is there anything more to be done in this issue? I saw that the tests have passed and was wondering if it got left behind! Thanks!

@pllim

pllim commented Nov 27, 2023

Copy link
Copy Markdown
Member

There are conflicts now, so this needs a rebase. While you rebase, squashing commits into one commit would be nice. Thanks!

@github-actions github-actions Bot added the Close? Tell stale bot that this issue/PR is stale label Mar 22, 2024
@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.

olintoeduardo and others added 4 commits March 26, 2024 06:33
Removed OrderedDict from astropy/time/formats.py and replaced with dict.
@taldcroft
taldcroft force-pushed the removeOrderedDictFromTime branch from fd54ce3 to c3f1575 Compare March 26, 2024 13:30
@taldcroft taldcroft removed the Close? Tell stale bot that this issue/PR is stale label Mar 26, 2024

@taldcroft taldcroft left a comment

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.

I rebased and stopped changed dict() to {} per ruff. Thanks @olintoeduardo and sorry for letting this one drop off my radar! Approving now contingent on CI passing.

@taldcroft
taldcroft enabled auto-merge (squash) March 26, 2024 13:37
@taldcroft
taldcroft merged commit f1ac433 into astropy:main Mar 26, 2024
d-giles referenced this pull request in d-giles/astropy-abdufork Jul 26, 2024
* Update formats.py

Removed OrderedDict from astropy/time/formats.py and replaced with dict.

* Create 15491.api.rst

* Change comment

[ci skip]

* Reword change log

* Use dict literal

---------

Co-authored-by: P. L. Lim <[email protected]>
Co-authored-by: Tom Aldcroft <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants