Comments (6)
This may be related to this issue in astropy: astropy/astropy#4098
from pint.
Jing reports that this issue does not occur when using numpy 1.8.
from pint.
I ran my test. It returns a different issue.
INFO: Reading toas from 'examples/NGC6440E.tim.pickle.gz'...
[pint.toa]
Traceback (most recent call last):
File "examples/fit_NGC6440E.py", line 21, in <module>
rs = pint.residuals.resids(t, m).phase_resids
File "/Users/jingluo/Research_codes/PINT/pint/residuals.py", line 12, in __init__
self.chi2 = self.calc_chi2()
File "/Users/jingluo/Research_codes/PINT/pint/residuals.py", line 52, in calc_chi2
return ((self.time_resids / self.toas.get_errors()).decompose()**2.0).sum()
File "/Users/jingluo/anaconda/lib/python2.7/site-packages/astropy-1.1.dev13975-py2.7-macosx-10.5-x86_64.egg/astropy/units/quantity.py", line 842, in __div__
return self.__truediv__(other)
File "/Users/jingluo/anaconda/lib/python2.7/site-packages/astropy-1.1.dev13975-py2.7-macosx-10.5-x86_64.egg/astropy/units/quantity.py", line 821, in __truediv__
return super(Quantity, self).__truediv__(other)
ValueError: operands could not be broadcast together with shapes (62,) (0,)
There is no data in the pickle file.
from pint.
Can we confirm that this is solved? For me, with the development version of Astropy, and numpy 1.10.1 it is no longer an issue.
from pint.
This should be fixed on all platforms with the latest astropy. I think that the fix is in the new release candidate for v1.1
from pint.
I finally got a chance to test it on my Mac with the dev version of astropy. Test runs fine now. Closing...
from pint.
Related Issues (20)
- Parallelize computations
- Speed up ECORR code using `fastshermanmorrison` HOT 2
- astropy 6.1.0 bumps minimum python to 3.10 HOT 2
- Tests for Gaussianity and whiteness
- `make_fake_toas_fromtim` should also accept a `TOAs` object HOT 2
- Add a `get_Tspan()` method to `TOAs`
- CI tests are failing. (Probably due to new numpy v2.0.0) HOT 8
- `make_fake_toas_fromtim` should use the BIPM version from the model. HOT 1
- If a fallback clock is used, it is not recorded in the output par file, causing PINT/Tempo2 par file compatibility problems HOT 1
- Zenodo release licensing information HOT 3
- Band noise and system noise
- PINT does not run on Windows. HOT 3
- Tests are failing (probably due to new scipy version) HOT 9
- Observatory naming conflict prediction HOT 1
- Codecov upload is broken HOT 2
- Utility function for noise model selection
- Reoarganize `pint.utils` HOT 1
- Strange recursion problem with pint logging in recent astropy HOT 2
- Including frozen in maskParameter __repr__
- model1.par = model2.par has unexpected results HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pint.