-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: build error on to_latex #5331
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
Comments
cc @jorisvandenbossche, cc @JanSchulz I think related to a recent change |
This seems to be three errors: both the
The third (actually the first) could be due to some formatting problems in |
since Index is currently a sub-class of ndarray it picks up flags I think this is just used internally, so could for now just provide a simple doc string for it |
I've seen those to_latex errors too...makes sense that it's a numpy |
Yes, it are indeed three new warnings since the recent changes to the docs. The The other two malformatted table warnings is more tricky, as you already noted, this are numpy inherited methods. So it should actually be fixed at the numpy side. |
Is it possible to define the flags method in |
wouldn't it be possible to simple set |
@jtratner Why do you need latex for it? It is just for the html docs? |
@jorisvandenbossche I don't, you're correct, I'm building it now. If flags is actually a property, then you can set the doc on it. (every property actually can take a docstring, but I believe it defaults to the getter) |
@JanSchulz Seems also a good idea, but then I wouldn't set it to a empty string, but a useful short description (maybe mention numpy) because it still appears in the pandas docs. |
How about "internal property, do not use"? 😄 |
Nope, can't do it: FrozenNDArray.flags.__doc__ = "internal property, may be removed in the future"
AttributeError: attribute '__doc__' of 'getset_descriptor' objects is not writable |
I thought you could exclude members...why can't we just exclude flags? |
you can exclude members with |
Actually, it could be nice to special case Index objects and not autosummary them, so we can actually choose what we show... |
But maybe could also be a lot more work :-) Maybe this could help we want to go the way of autosummary: http://sphinx-doc.org/ext/autodoc.html#skipping-members |
got it - well, I'd vote for blocking all the I think you can do it with something like this: import numpy as np
getset_descriptor = type(np.ndarray.flags) And then you can just do |
anyways I'm happy to go with whatever solution you two thinks makes most sense. |
@jorisvandenbossche @jtratner anything on this one? |
We can fix this completely and with little effort once Index isn't an |
Is there any way to do super with properties? That would be a simple way to fix... |
same way as func |
So |
should work |
I think it's fine for now - lets just bump 0.14 and ref the index refactor (which will effectively close): alternatively u can just make flags not implemented error |
Making flags not implemented will probably cause |
Yep, I was right, NotImplementedError causes a nice little segfault :) On Mon, Oct 28, 2013 at 5:41 PM, Jeffrey Tratner
|
So I also added a PR to address the other part of this issue (the malformed tables). This removes the docstring of the flags attribute. This is a temporary solution, until the Index is no longer a subclass of numpy ndarray (or until it is fixed in numpy itself, which could already be the case in the newest numpy because in the dev docs, the table does render in contrast to the stable docs). |
…cstring DOC: remove docstring of flags attribute during doc building process (#5331)
https://gist.github.com/changhiskhan/7159783
from @changhiskhan
The text was updated successfully, but these errors were encountered: