Comments (6)
I took a look at the discrepancies and consulted with Norman. Given that the differences are all in the 5th or 6th significant figure and affect <2.5% of pixels in the detector, they are minor enough to ignore. Let me know if there's anything else I can help with.
from acstools.
Thanks! I can look into adjusting the tests when I have time. This is not urgent for now.
from acstools.
I have #185 that would make the CI green but I did find some difference that require me to set the tolerance very high (atol=0.1
). Is this something you would accept as a solution? If not, what was the new tolerance you were thinking about (how relaxed are you willing to go)?
from acstools.
I confirmed that the failures are caused by numpy 2.0.dev , not scipy nor astropy dev versions. See #187 (comment)
from acstools.
I ran some tests in a numpy 2.0 dev environment and an environment with current numpy (1.26.2) to track down the cause of the failures. It looks like numpy 2.0 keeps results of some arithmetic in the original dtypes, when the current numpy converts them to np.float64
. These differences in dtypes compound floating point errors during subsequent calculations, resulting in the discrepancies we see as test failures. This may explain some of the behavior we're seeing: https://numpy.org/neps/nep-0050-scalar-promotion.html#table-comparing-new-and-old-behaviour
For the failures, I think setting atol = 0.01
should allow the tests to pass. That level of error is acceptable to us given the stripe uncertainties (0.9 e- RMS). If that level of absolute tolerance doesn't work, I'll have to revisit this.
from acstools.
Thanks for investigating, @jryon ! I think atol=0.01
worked. See #192
from acstools.
Related Issues (20)
- DOC: API doc can be cleaned up
- interpret_bit_flags should be imported from astropy.nddata.bitmask HOT 3
- Extensions of CRJ_TMP files must be divided by number of combined images in crrej_plus HOT 18
- [AUTO] Regression testing summary HOT 1
- MNT: Deprecation warnings in satdet with numpy 1.19.0 HOT 1
- Remove upper limit on input date in acszpt HOT 4
- [AUTO] Regression testing summary
- acsphotometriccte.stsci.edu has error 503
- TST: Replace ssbjenkins HOT 2
- TST: Handle warnings
- api supporting acszpt seems to have changed. HOT 4
- TST: CRDS - ERROR - (FATAL) CRDS server connection and cache load FAILED
- Release: Update Zenodo DOI on README after the next release HOT 8
- DOC: Enable nitpicky HOT 1
- TST: test_wfc_findsat_mrt.py has MergeConflictWarning using astropy 6.0.dev
- BLD: Reintroduce OpenAstronomy publish workflow but have exclude LFS files in MANIFEST.in
- TST: acsphotometriccte linkcheck failed with [SSL: CERTIFICATE_VERIFY_FAILED]
- TST: 2 test failures caused by __array_wrap__ DeprecationWarning with numpy 2.0 (devdeps)
- MNT: Drop Python 3.9
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 acstools.