Skip to content

Conversation

@taldcroft
Copy link
Member

#4684 raised the issue of how the different underlying type for np.int on Windows (np.int32) vs. other platforms (np.int64) can be a problem. To solve that particular issue, and more generally ensure consistent behavior for reading ASCII tables across platforms, this changes the default types to specifically choose the 64-bit version, e.g. np.int64 instead of np.int.

This is going to be an API change for Windows users. I think it should be acceptable, but comments otherwise are welcome.

Fixes #4684.

from collections import defaultdict, OrderedDict
from textwrap import wrap
from warnings import warn
import numpy as np
Copy link
Member Author

Choose a reason for hiding this comment

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

Ooops, this is a leftover, will remove.

@hamogu
Copy link
Member

hamogu commented Mar 13, 2016

This should have a Changes entry since it's an API change for some users.

@hamogu
Copy link
Member

hamogu commented Mar 13, 2016

I'm sure there is some reason that 32 bit is the default on windows - I assume there is a performance penalty to using 64 bit data types on a 32 bit system. There are few 32 bit systems left out there, so that's probably not an issue any longer; thus, I'm fine with this change (once the tests pass).

@taldcroft
Copy link
Member Author

Drat, it's failing in the fast reader. @mdmueller - do you know offhand how to change the default int output to be int64 instead of int32 on windows in the fast reader?

@taldcroft
Copy link
Member Author

@mdmueller @hamogu - Just pushed up a fix that might work.

@astropy-bot
Copy link

astropy-bot bot commented Sep 27, 2017

Hi humans 👋 - this pull request hasn't had any new commits for approximately 1 year, 6 months. I plan to close this in a month if the pull request doesn't have any new commits by then.

In lieu of a stalled pull request, please close this and open an issue instead 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 you believe I commented on this issue incorrectly, please report this here.

@astropy-bot
Copy link

astropy-bot bot commented Nov 21, 2017

⏰ Time's up! ⏰

I'm going to close this pull request as per my previous message. If you think what is being added/fixed here is still important, please remember to open an issue to keep track of it. Thanks!

If this is the first time I am commenting on this issue, or if you believe I closed this issue incorrectly, please report this here.

@astropy-bot astropy-bot bot closed this Nov 21, 2017
@astrofrog astrofrog added the closed-by-bot Closed by stale bot label Nov 21, 2017
@taldcroft taldcroft deleted the ascii-int64-float64 branch February 25, 2019 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants