-
Notifications
You must be signed in to change notification settings - Fork 35
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
Use asdf files for testing compare_spec_type and star_type_probability #662
Conversation
@lea-hagen : it would be quicker if you were to generate the needed new files and then just tell me where they are on central storage? Saves me from having to clone your branch, etc. |
No problem, I'll send you a message with the path! |
Codestyle failures need to be addressed in addition to the files. |
Even after uploading new files during the hack day last week, there were still some failing tests. I think I tracked down the issue, so along with new code in BEAST-Fitting/beast-examples#19, this will hopefully work. |
Still failing. Hopefully you can find a solution fairly soon. If not, maybe tag some of these tests as skip? Need this PR to be merged before merging PR #678. |
Yesterday I narrowed it down to an issue with folder teardown when doing tests for code in tools.run. I'm fine solving that in a different PR, so I'll skip the relevant tests and push the branch shortly. |
@karllark do you know why the noisemodel test is failing? I double checked that all of the input files and settings match, so maybe I just need to rebase and regenerate files again?? |
No idea. Try a rebase. We have been working on the noise model recently, so I could see one of the recent PRs changing the noisemodel. Depends on how out-of-date your branch is. |
Not that I can see what PR would have caused this looking at the network graph. |
Yeah, I couldn't figure anything out about noisemodel changes either. I'll rebase and see if the files change. |
I rebased and ran The resulting noise models are identical. So the best I can figure is it's the Mac vs Linux issue (e.g., #169). Edit - I created the cached files on a Linux virtual server (only accessed from my Mac). So I have no idea. |
So, not a Mac versus Linux issue. Sigh. |
If you run |
Testing things on my laptop now. Hopefully that will provide some clue. |
I have done a number of tests. The tests were failing on my machine until I regenerated the files on my computer and pushed them to the cache directory. Now the tests are passing on my computer. Re-running the github action tests now to see if the online tests pass. |
Tests pass online! Yeah! The only thing I can think of is that there is some package/setup on your computer that is causing the problem. FYI, I am using python 3.8. One thought, did you recently update your system/conda/...? |
As the tests pass, this the PR ready for review/merging? If so, please mark as ready to review. |
I did rebuild my environment recently (in the past ~month?). I didn't have python 3.8 so tox was grumpy. Super weird that we're getting different results, but I'm glad it's sort of figured out! Thanks for taking the time to poke at it. I'll mark as ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great.
Will merge. Would be good to update/add to #598 with what is needed/has been fixed with this PR. |
The
generate_files_for_tests
code in BEAST-Fitting/beast-examples#16 creates asdf files for testing thecompare_spec_type
andstar_type_probability
tools. This updatestest_regresscheck
to use those files. @karllark, could you usegenerate_files_for_tests
to update the cached metal_small files (assuming, of course, that it doesn't need any changes first)? Then I'll be able to check iftest_regresscheck
is working as expected.This PR also adds
hdu=1
to the stats file read-in forcompare_spec_type
.