-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some non-functioning-APIs fixed #2019
Conversation
@@ -12,7 +12,7 @@ package with a unified installer, including: | |||
|
|||
* asciitable as :mod:`astropy.io.ascii` | |||
* PyFITS as :mod:`astropy.io.fits` | |||
* votable as :mod:`astropy.io.vo` | |||
* votable as :mod:`astropy.io.votable` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more of a question for the wider audience: I wonder if we should retroactively update these... It certainly was correct at the time. In this specific case, it probably doesn't matter, but for someone considering updating from 0.1 to 0.2, when 0.3 is already released, this kind of thing could add confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And to clarify -- I wouldn't be opposed to this changing to:
``astropy.io.vo``
i.e., a non-link, in order to make nitpicky
mode happy.
EDIT: Replaced "would" with "wouldn't" above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also agree that we shouldn't change the name of the module in the 0.1.rst
file - it should reflect what the code was at the time.
@mdboom - what do you suggest we should use instead of double backticks for cases like this? Should we just leave the single backticks and live with the warnings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To some extent, this applies to any other renaming - why not use the double backticks to refer to old names that no longer resolve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops: I mistyped above. I meant "wouldn't be opposed" rather than "would be opposed." Sorry about that ;)
So I agree that double backticks are probably the best solution here -- it will resolve the warning without renaming it for the reader.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, sounds good :)
@krngrvr09 - could you change this example to:
``astropy.io.vo``
rather than rename it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Aside from my question (which is really just a policy question about changelogs), this looks good. Thanks for doing this kind of work: it really enhances the overall polish. |
@@ -240,7 +242,7 @@ return Numpy arrays. | |||
|
|||
As shown above, all the coordinate classes have now been renamed to drop the | |||
``Coordinates`` suffix (e.g. ``ICRS`` instead of ``ICRSCoordinates``). In | |||
addition, `HorizontalCoordinates` has now been renamed to `AltAz`. | |||
addition, ``HorizontalCoordinates`` has now been renamed to `astropy.coordinates.builtin_systems.AltAz`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there should be a ~
in the link for AltAz
, i.e. ~astropy.coordinates....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't seem to make a difference. The absence of '', seemed unusual to me too, but since it was not showing a warning, I let it go. What does the '' signify?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without the ~, you should see 'astropy.coordinates.builtin_systems.AltAz' and with it, you should see 'AltAz' - i.e. when you add it, you say that you only want to see the last part of the path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, alright. Since I was checking only the warning, I didn't realize that. Thank you.
@krngrvr09 - I just saw you added some commits - in general once you've resolved issues we raised, add a comment otherwise GitHub doesn't tell us there have been updates to the pull request. |
@krngrvr09 - this looks good now - shall I merge it, or do you want to add more fixes first? |
@@ -12,7 +12,7 @@ package with a unified installer, including: | |||
|
|||
* asciitable as :mod:`astropy.io.ascii` | |||
* PyFITS as :mod:`astropy.io.fits` | |||
* votable as :mod:`astropy.io.vo` | |||
* votable as :mod:``astropy.io.vo`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should drop the :mod:
directive too. It should just read
* votable as ``astropy.io.vo``
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just so I know, what does the :mod: do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, build_sphinx is showing, astropy.io.fits
as broken. Any idea why?
I just added a couple more suggestions, but other than that this is good. |
@astrofrog Almost everything is fixed. |
@krngrvr09 - yes, could you add single ticks? The link will still be broken (I will raise this issue separately) but single ticks is the right thing in this case. |
Broken links of the whatsnew folder are fixed. Currently working on 'wcs'. |
@krngrvr09 - will you push that here too, or would you prefer to open a new pull request? |
I think I'll push them here. After fixing 3-4 modules, you can merge them. |
@astrofrog 'vo' and 'wcs' modules are fixed now.
|
@krngrvr09 ignore the fact that 'astropy.io.fits' and 'astropy.io.votable.validator.result.Result' don't work for now. For the latter, I think @embray can fix that, and for the latter we either need to document the For the accidental change to Once you've fixed the ones you mention, we can merge - thanks! |
I thought we already discussed |
@pllim: You're exactly right. I think we just need to not refer to it from |
Will using double quote thingy suffice? Like
|
@pllim: That's probably fine, but it seems a little rude to refer to an undocumented class like that. (Like a dictionary that for a definition says "see X" but then doesn't define X). But I'm actually not sure what you mean by "original attribute names" -- do you mean the dictionary keys? Maybe we should just list what they are? |
@krngrvr09 and @astrofrog , |
@@ -20,8 +20,8 @@ out only standard keywords), in accordance with `Postel's prescription | |||
Header-reading relaxation constants | |||
----------------------------------- | |||
|
|||
`~astropy.wcs.WCS`, `~astropy.wcs.Wcsprm` and | |||
`~astropy.wcs.find_all_wcs` have a *relax* argument, which may be | |||
`~astropy.wcs.wcs.WCS`, `~astropy.wcs.Wcsprm` and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a tricky one. The actual place where we want users to import astropy.wcs.wcs.WCS
from is astropy.wcs.WCS
, but the documentation generates it for its "real" location. I know that there's some work going on to fix this problem in #1826 and elsewhere...
@eteq: Since you're much more involved with all this than I am, can you comment? Would it make sense for @krngrvr09 to hold off on this for now until #1826 is resolved. I'm just worried if we make this change now, we'll just have to change it back to what we really want it to be later...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, good point @mdboom. But there are a lot of places where we've been doing this already, so we'll have to go correct it all en masse in the future.
I guess if you think this will be merged soon, I'd say go ahead and accept this, as it might still take more time for #1826 to get working (lots of Sphinx black magic going on there...). We'll probably want to try to find an automated way to take care of it anyway after #1826...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me, if #1826 is still a ways off...
I just looked over the |
@astrofrog Done. Unsure about a few things.
@mdboom I have not changed anything in P.S - 300 broken links fixed! |
@krngrvr09 - in the following sentence:
all the ones in single ticks should be in double ticks. These are just made up variable names for what an equivalency should consist of. For the
the issue is that indeed it does not appear in the docs:
|
See the note at the top of http://docs.astropy.org/en/stable/utils/index.html for |
Oh yes. I had read that note. Somehow forgot. My bad! |
@astrofrog Is there anything else, I have to do? |
@@ -253,9 +253,9 @@ of ``c`` is used instead of the constant. | |||
Displaying available equivalencies | |||
---------------------------------- | |||
|
|||
The :meth:`~astropy.units.core.Unit.find_equivalent_units` method also | |||
The :meth:`~astropy.units.core.UnitBase.find_equivalent_units` method also |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm: this looks like the correct change to me.
@krngrvr09 - we should rebase this (without squashing) to get rid of the merge commits here. I can send instructions on doing that later this evening. |
@krngrvr09 - I made a backup of your branch in case anything goes wrong. Just do:
Don't edit the commits, just save and continue and it will start the rebase. I think you will get a conflict, so try and resolve it and then proceed. I have a backup of the branch so as a last option I can merge it manually - but it'd be good to learn to rebase. There are some instructions here: http://docs.astropy.org/en/stable/development/workflow/development_workflow.html#rebase-on-trunk If you have any questions, feel free to ask here or see if anyone is on IRC. For future, if you want to update the commits in your branch, don't merge master into the branch - instead, rebase of the upstream master to always include your commits at the top. |
Successfully rebased. On |
@krngrvr09 - you'll need to force push for the changes to appear here. |
@astrofrog Done. |
@krngrvr09 - great job with the rebasing :) This looks good now, let's just wait on Travis. |
All thanks to you. :) On Fri, Feb 28, 2014 at 2:28 AM, Thomas Robitaille <notifications@github.com
|
@krngrvr09 - I just realized that two or three of the API links may have to be changed back now that #1826 has been merged. Now that you have rebased you should have these changes so if you run the |
I'll do that right away. On Fri, Feb 28, 2014 at 2:31 AM, Thomas Robitaille <notifications@github.com
|
@astrofrog Broken links have gone up to 2600. |
Some non-functioning-APIs fixed
@krngrvr09 - thanks for the contribution! |
26 out of the 36 non-functioning APIs in 'whatsnew' folder are fixed. #1221