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

Fix order of interpolation grids in preproc_ascii_opac.py (sorry). #56

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

RyanWollaeger
Copy link
Contributor

Background

The testing did not expose a bug in the preproc script, where the ordering of the rho-T grids was wrong in the interpolation function. This was due to testing on an input file that had an equal number of density and temperature points, along with equal opacity at each.

Changes

  • Fix rho, T grid ordering in SciPy interp2d function.
  • Add an optional plotting capability, to look at color maps before and after interpolation:
Screen Shot 2024-11-20 at 12 43 28 PM

@RyanWollaeger
Copy link
Contributor Author

@brryan @Yurlungur - sorry to have not checked this script interpolation more carefully initially.

Copy link
Collaborator

@Yurlungur Yurlungur left a comment

Choose a reason for hiding this comment

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

Nah easy fix. Thanks for getting on it so quickly.

@Yurlungur Yurlungur merged commit 8d2f0fa into lanl:main Nov 20, 2024
1 check passed
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.

2 participants