Skip to content
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

toa.get_mjds() Issue #52

Closed
luojing1211 opened this issue Oct 29, 2015 · 2 comments
Closed

toa.get_mjds() Issue #52

luojing1211 opened this issue Oct 29, 2015 · 2 comments
Labels

Comments

@luojing1211
Copy link
Member

The get_mjds() has problem to get mjds.
"""
Traceback (most recent call last):
File "examples/fit_NGC6440E.py", line 22, in
xt=[x.value for x in t.get_mjds(high_precision=False)]
File "/Users/jingluo/Research_codes/PINT/pint/toa.py", line 408, in get_mjds
return numpy.array([t.mjd.value for t in self.table['mjd']])
AttributeError: 'float' object has no attribute 'value'
"""

@paulray paulray added the bug label Nov 23, 2015
@paulray
Copy link
Member

paulray commented Nov 23, 2015

This appears to have been fixed. I no longer get errors like this. If anyone still gets this, please report your numpy and astropy versions. Mine are:

In [3]: np.__version__
Out[3]: '1.10.1'

In [4]: astropy.__version__
Out[4]: u'1.0.5'

For now, I'm closing this issue.

@paulray paulray closed this as completed Nov 23, 2015
@scottransom
Copy link
Member

I think that's because I fixed it with a recent push... I didn't even realize that this was listed as an issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants