Closed s-celles closed 9 years ago
This, at least, should be fixed now.
I think this deserves a new release. I also added the ability to transpose the view.
If you could give it a quick test, I'll release 0.2
If you add tests (see my comments https://github.com/wavexx/gtabview/issues/9) it will be much easier to give it a try (even if tests are not automated)
I noticed a problem with index numbering with lists
On 25/07/15 14:41, scls19fr wrote:
I noticed a problem with index numbering with lists
What's the problem with it?
First row (number 0) is 1 2 row 3 4 should be numbered "1"
lst2 = [[1, 2], [3, 4]]
There is also 2 rows and 2 columns (not 1 row(s), 2 columns)
On 25/07/15 14:49, scls19fr wrote:
First row (number 0) is 1 2 row 3 4 should be numbered "1"
This is because for lists-of-lists (like for files), the first is assumed to be labels, as there's no way to tell.
idx_rows=0 should do what you want.
On 25/07/15 14:52, Yuri D'Elia wrote:
On 25/07/15 14:49, scls19fr wrote:
First row (number 0) is 1 2 row 3 4 should be numbered "1"
This is because for lists-of-lists (like for files), the first is assumed to be labels, as there's no way to tell.
idx_rows=0 should do what you want.
And by that, I mean hdr_rows.
Shouldn't we consider that by default there is no header (for lists) ?
On 25/07/15 14:54, scls19fr wrote:
Shouldn't we consider that by default there is no header ?
I'm not sure (in either direction). Sometimes I find it convenient, sometimes not.
Spyder variables editor display for lists is not very nice
but it is not misleading
because yes... that's quite misleading !
True, especially at the beginning. Should the header be enabled only when loading from a file then?
Yes I think it's a good idea.
On 25/07/15 15:21, scls19fr wrote:
Yes I think it's a good idea.
Done.
Hello Yuri,
There is a problem with NumPy arrays
raises
Here is a screenshot of Spyder displaying this matrix
I think you should use duck typing and have a fallback mode to Numpy Arrays and if view function raises an error, display this message.
Kind regards