-
Notifications
You must be signed in to change notification settings - Fork 25
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
remove alias of neutral fields to generic names #130
Conversation
Most of the failing tests were looking for the field names that have now been removed. Two were enzo answer tests that were using the old field names incorrectly. I'm updating the gold standard for them now. |
9aeee73
to
6ed541a
Compare
Pull Request Test Coverage Report for Build 755
💛 - Coveralls |
@chummels, I think it would be a good idea for you to look this over before it's merged. |
I've found a number of places that you missed. I've been committing local changes to address these, but I ran into some problems with running the tests on the current gold standard, which I addressed in Issue #133 , because I've been getting a large number of failures locally and don't want to commit garbage to that messes up this PR. |
@@ -70,7 +70,7 @@ commands: | |||
command: | | |||
source $BASH_ENV | |||
source $HOME/venv/bin/activate | |||
git checkout ${<< parameters.tridenttag >>} | |||
git checkout ${<< parameters.tridenttag >>} || git checkout $TRIDENT_HEAD |
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.
With this change, we won't have to first set TRIDENT_GOLD
to be HEAD
and then change it with a direct commit after the pull request is merged. We'll still have to remember to add the tag and push it.
@chummels, does anything else need to be done for this? |
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.
I found several other areas in the code where now-unnecessary checks were being made to look for aliased fields. There were also some tests and docs that were referencing the old H_number_density
field. I think this now gets everything.
Note, when I run the tests locally, I see 3 test failures. The test you mentioned: test_absorption_spectrum_non_cosmo_sph
, but also two tests in the test_pipelines.py
test: test_enzo_small_compound
and test_enzo_small_simple
. But I also see these tests failing on the dev tip, so I don't think the problem was introduced by this PR.
One thing I noticed is that yt-4.0 doesn't seem to have made |
Looks like tests are passing. I have to go now, but feel free to merge when ready. |
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 good!
In yt-4.0, the
X_number_density
and related fields have been re-defined to be aliases toX_nuclei_density
instead ofX_p0_number_density
. Hence, we need to drop that old aliasing here, too. This PR removes the generic alias names and requires usingp0
fields for neutral species. I think I've gotten all the right places, but am not sure, so I'll wait for some feedback on this one.