Skip to content
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

Cornerflow test #50

Merged
merged 49 commits into from
Oct 24, 2022
Merged

Cornerflow test #50

merged 49 commits into from
Oct 24, 2022

Conversation

adigitoleo
Copy link
Member

@adigitoleo adigitoleo commented Sep 7, 2022

Cornerflow test, integration fixes and logging.

Draft because I still need to:

  • Optimise time to create Minerals, which seems a bit slow compared to the solver time Nope, it's the diagnostics and output happening after one Mineral finishes and before the next one is created, not optimising this here
  • Debug why my CPO is not aligning to the extent shown in Kaminski 2002 fig. 5 Postponed until further analysis, could be differences in the spherical averaging.
  • Stop dumping so much data in logs
  • Finish the second test with the (analytical) pathline
  • Add actual asserts so the tests are not just toy examples :)
  • Set up a test ordering so more complex tests are run later, and quick tests can fail early and give a big red X Nope, there's not an easy way to do it in pytest and I don't want too many hacks in my testing code
  • Figure out why pytest is not respecting --log-cli-level in CI -- various reasons, including buggy interaction of pytest CLI args and other loggers (logging level and output capture sensitive to environment and confusing pytest-dev/pytest#10283)

@adigitoleo

This comment was marked as resolved.

@adigitoleo

This comment was marked as outdated.

Copy link
Collaborator

@Patol75 Patol75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A first quick look at the code; I have not spotted any major issue. I will have to run the tests to provide some further feedback.

src/pydrex/minerals.py Show resolved Hide resolved
src/pydrex/minerals.py Outdated Show resolved Hide resolved
@adigitoleo adigitoleo marked this pull request as ready for review October 21, 2022 01:28
@adigitoleo
Copy link
Member Author

I'll need to revisit this later to fully understand what is going on, but for now I think it's worth having these even just to check that the pathline routines run properly. This PR also got a bit out of hand so it includes a bunch of infrastructure that will be useful later (logging, visualisation, etc.)

adigitoleo and others added 25 commits October 21, 2022 13:17
The deformation gradient tensor is what we actually manipulate in the code.
DF_ij/Dt = L_ik F_kj
Still need to track down why the misalignment angle sometimes blows up near the end.
Still need to change the debug statements to not print so much data.
adigitoleo and others added 23 commits October 21, 2022 13:17
This seems to be the strongly recommended method
Copy link
Collaborator

@Patol75 Patol75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, well done!

src/pydrex/logger.py Outdated Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
@adigitoleo adigitoleo merged commit 5a51047 into seismic-anisotropy:main Oct 24, 2022
@adigitoleo adigitoleo deleted the cornerflow-test branch October 24, 2022 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants