-
Notifications
You must be signed in to change notification settings - Fork 164
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
Un-exclude interm_tesscut_dss_overlay #77
base: master
Are you sure you want to change the base?
Conversation
seems convert got caught up on align_multiple_visits |
@samanthalh , can you think of why the PNG to be renamed is non-existent in the DrizzlePac notebook? Please advise, thanks. FileNotFoundErrorTraceback (most recent call last)
<ipython-input-7-7a75d58f34ed> in <module>
1 #Give the 'fit residual plots' a unique name for comparison with other tests.
2
----> 3 os.rename('residuals_j9irw5kaq_flc.png','residuals_j9irw5kaq_flc_default.png')
4 Image(filename='residuals_j9irw5kaq_flc_default.png', width=500, height=600)
FileNotFoundError: [Errno 2] No such file or directory: 'residuals_j9irw5kaq_flc.png' -> 'residuals_j9irw5kaq_flc_default.png' |
This comment has been minimized.
This comment has been minimized.
@pllim Glad to hear! Was going crazy not being able to find that code in the notebook. |
@pllim, that PNG should be output by TweakReg in a previous cell. So either TweakReg isn't running for some reason or it's saving that file in a strange place that then cannot be found by the os command. Nothing has changed about the notebook, so I can only guess that this is a difference between Travis and this new ci/circleci that is apparently now being used. I have no idea about why that would matter, though, so you'll have to ask @eteq or one of the other repo maintainers. |
Talking about TweakReg, @mcara , any ideas? |
I remember that we had some issues with paths that would work when individuals ran the notebook but failed when the CI tried to when we were submitting these the first time around - is it possible that os.rename() didn't rename the file? Maybe place a test line in the notebook about whether 'residuals_j9irw5kaq_flc.png' exists would help suss out whether it's TweakReg or the os.rename() function causing the issue? If it is an issue with os.rename() then it may be necessary to add in some of the absolute path finagling we did before. A second idea may be something similar to what we struggled with in #34 where we had to specify the input list for the output files of TweakReg to be named as expected? |
According to @mcara, |
I do not see any obvious issues with |
Try sorting input file list to ensure the same order. See if this helps improve consistency. |
Good point, Mihai! https://stackoverflow.com/questions/6773584/how-is-pythons-glob-glob-ordered |
Bingo, Mihai wins: |
I am trying to fix the TweakReg thingy over at #78. |
@eteq , if you rebase, the DrizzlePac error will not bother this PR anymore. |
This probably need a rebase and see if CI would still pass. |
This is a test PR to see if taking
interm_tesscut_dss_overlay
out of the exclude list now allows the tests to pass. The origin of this problem was initially confusing, and at the very least maybe the update log here will help diagnose it? We shall see what the tests show...