Comments (15)
@pllim "It is a known issue" 😄 It is the result of the fix in #86 for integer division. I am working on other tweakreg fixes (#87) and I will just OKify these tests once I am done.
from drizzlepac.
Fixed via spacetelescope/stsci.skypac#16 The problem was in stsci.skypac
.
from drizzlepac.
@drdavella Any ideas?
from drizzlepac.
Sorry, this got lost in my email. If you can tell me how to reproduce this, I'll look into it.
from drizzlepac.
Unfortunately, @pllim @jhunkeler , the way new Python 3.5 tests have been set up, they overwrite 2.7 tests (both tests run in the same directory even though I suggested in a different issue that such practice be discontinued). So, I will have to set-up exact environment as on Sept. 25th and see if I can reproduce the error and possibly get more details on this error.
from drizzlepac.
@mcara , we stopped testing in Python 2 -- That won't even work with astropy dev anymore. Not sure what is the problem here regarding PY2/PY3. If you can see this failure in Python 3, just go from there.
from drizzlepac.
Rule of thumb -- Anything that deals with astropy>=3
(this includes the PR you mentioned above), don't use Python 2 anymore.
from drizzlepac.
@pllim I still need to understand why did these tests failed with a weird message regarding binary/write file open mode.
from drizzlepac.
Here's an outline of the problem: in addition to filenames, URLs, etc., fits.open
allows you to pass open file handles. For example:
with open('example.fits', 'rb') as handle:
ff = fits.open(handle)
Since FITS is a binary file format, it only makes sense to pass file handles that were opened with mode='rb'
, mode='wb'
, or similar. Passing a file that was opened in text mode does not make sense. However, io.fits
was previously not checking for that condition in all cases.
I looked through the drizzlepac
source and it was not immediately apparent to me that there were any cases where a file handle was being passed to fits.open
. As far as I could tell, in all cases a file name was being passed.
So I'm not exactly sure where this error is coming from on your end, but if there is a way to reproduce it, I'm happy to help track it down.
from drizzlepac.
I don't see that failure today. Do you? https://ssb.stsci.edu/pandokia/pandokia.cgi?query=treewalk&host=%25&project=drizzlepac&test_run=conda-conda_tests_py3_2017-09-29-09%3A44%3A02
from drizzlepac.
I do not see this error in Python 3 tests but this does not mean that there is no problem with the code. In particular, if drizzlepac code (in fact I suspect it is drizzlepac & skypac) was mixing opening modes as described by @drdavella - maybe we should fix this anyway. Why the pass now - I have no idea - I definitely did not make any commits to neither drizzlepac nor skypac recently...
@drdavella All the tests that were failing were run in the "inmemory" mode when most of the images are kept in memory and not written out to the disk. I will need to see if there is some sort of conflict there but it is weird that now in Python 3 these tests are OK...
from drizzlepac.
While WFC3 test passes now, the ACS one is failing -- https://ssb.stsci.edu/pandokia/pandokia.cgi?query=detail&key_id=115937021
from drizzlepac.
@pllim Actually, I need to clarify my previous comment: pixsky1
test is failing because acs_tweak
was OKified earlier. These two tests are in tandem and pixsky1
depends on the results of the first one. When I OKify the first test this second test starts failing next day.
I have just OKified this test to have all tests clear for upcoming merges.
from drizzlepac.
Thanks, @mcara . drizzlepac
appears to be passing nicely now. (Hides back in shadow.)
from drizzlepac.
utils
!!!
from drizzlepac.
Related Issues (20)
- issues raised by SonarQube static code analysis HOT 1
- Investigate devdep github test failures
- Create new config files and keywords for relative alignment HOT 1
- Discussion: Config file update with different values for relative and absolute alignment HOT 15
- Drizzlepac/HAP: Determine the best relative fit for pipeline and svm products HOT 1
- Save "rel" header keywords for best relative fit for pipeline and SVM products HOT 1
- Verify keyword mapping to values in astrometry database
- HAP/Catalogs: Sky background is incorrect when image has too many unused pixels HOT 6
- fix issues raised by sonarscan HOT 3
- Support for int64 Context Maps HOT 1
- Correct calculation of n1_exposure_time for HAP images HOT 8
- Drizzlepac: Test new "rel" fit requirements for relative pipeline products HOT 3
- Drizzlepac/HAP: Test new "rel" fit requirements and header keywords for relative SVM products HOT 2
- SVM: Add "if" statement to code block unnecessary for ACS/SBC and WFC3/IR processing HOT 1
- CALACS: Update ACS/WFC truth files to accommodate the serial CTE HOT 1
- Investigate numpy 2.0 scalar promotion issue in STWCS HOT 1
- Create cron job for STWCS HOT 1
- Investigate IDCTAB=N/A
- [tests] `compare_outputs`'s `AssertionError` can be massive HOT 2
- Drizzlepac/HAP: Investigate numpy 2.0 issues in astrometric_utils HOT 1
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 drizzlepac.