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

Adding needed functionality to nonhom_grip.py #2035

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

sonachitchyan
Copy link
Member

@sonachitchyan sonachitchyan commented May 26, 2022

📝 Description

Adding nonhom_grid.py that includes velocity and $ \frac{dv}{dr}$ functions for shells and finding tau_sobolev_factor

Some of the changes shown here are part of #2024

Also, link issues affected by this pull request by using the keywords: close, closes, closed, fix, fixes, fixed, resolve, resolves or resolved.

📌 Resources

Examples, notebooks, and links to useful references.

🚦 Testing

How did you test these changes?

  • Testing pipeline
  • Other method (describe)
  • My changes can't be tested (explain why)

☑️ Checklist

  • I requested two reviewers for this pull request
  • I updated the documentation according to my changes
  • I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

@codecov
Copy link

codecov bot commented May 26, 2022

Codecov Report

Merging #2035 (7e2a326) into master (b0b04ee) will decrease coverage by 3.74%.
The diff coverage is 10.86%.

❗ Current head 7e2a326 differs from pull request most recent head 8ed512f. Consider uploading reports for the commit 8ed512f to get more accurate results

@@            Coverage Diff             @@
##           master    #2035      +/-   ##
==========================================
- Coverage   61.33%   57.59%   -3.75%     
==========================================
  Files          75       77       +2     
  Lines        8602     8737     +135     
==========================================
- Hits         5276     5032     -244     
- Misses       3326     3705     +379     
Impacted Files Coverage Δ
.../montecarlo/montecarlo_numba/nonhomologous_grid.py 9.24% <9.24%> (ø)
...montecarlo/montecarlo_numba/calculate_distances.py 29.50% <16.66%> (ø)
tardis/montecarlo/montecarlo_numba/numba_config.py 100.00% <100.00%> (ø)
tardis/visualization/widgets/custom_abundance.py 16.56% <0.00%> (-42.97%) ⬇️
tardis/io/config_validator.py 89.47% <0.00%> (-1.01%) ⬇️
tardis/montecarlo/montecarlo_numba/base.py 29.75% <0.00%> (-0.76%) ⬇️
tardis/montecarlo/montecarlo_configuration.py 100.00% <0.00%> (ø)
tardis/transport/geometry/calculate_distances.py
tardis/transport/frame_transformations.py
tardis/transport/r_packet_transport.py
... and 10 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

from tardis.montecarlo.montecarlo_numba.numba_config import ENABLE_NONHOMOLOGOUS_EXPANSION

@njit(**njit_dict_no_parallel)
def velocity(r_packet, shell_id, numba_model):
Copy link
Member

Choose a reason for hiding this comment

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

piecewise_linear

v = velocity(r_packet, shell_id, numba_model)
r = r_packet.r
dvdr = dvdr(shell_id, numba_model)
mu = r_packet.mu
Copy link
Member

Choose a reason for hiding this comment

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

write where the formula is from

Copy link
Member Author

Choose a reason for hiding this comment

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

should I add that to the individual functions?

@sonachitchyan sonachitchyan mentioned this pull request Jul 1, 2022
6 tasks
@Rodot- Rodot- self-requested a review July 8, 2022 20:59
@andrewfullard
Copy link
Contributor

This has been done now right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants