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

Critical bug in zsol.nsol #535

Merged
merged 4 commits into from
Sep 15, 2024
Merged

Critical bug in zsol.nsol #535

merged 4 commits into from
Sep 15, 2024

Conversation

HajimeKawahara
Copy link
Owner

@HajimeKawahara HajimeKawahara commented Sep 15, 2024

I found that there was a typo in the list of solar metallicity table:

"Ca": [9, 6.30, 0.03, 6.29, 0.03],
should be
"Ca": [6.30, 0.03, 6.29, 0.03],
in zsol.nsol.

Using the previous version, solar abundance, X, Y, Z becomes
X=0.7224801448031526 Y=0.2353605357014889 Z=0.04215931949535849
This was very high metallicity (Z=0.04)!

The correct one provides
0.7438051457070488 0.24230752749452047 0.013887326798430723

Z=0.0139 is correct. See Table 4 in https://arxiv.org/pdf/2105.01661

Unless you are using zsol.nsol(), this bug does not affect your results.
Sorry for this mistake.

Also, added a new method for computing X, Y, Z
zsol.mass_fraction_XYZ(number_ratio_elements)

@HajimeKawahara HajimeKawahara added the bug Something isn't working label Sep 15, 2024
@HajimeKawahara HajimeKawahara added this to the v1.6 milestone Sep 15, 2024
@HajimeKawahara HajimeKawahara self-assigned this Sep 15, 2024
Copy link

github-actions bot commented Sep 15, 2024

Test Results

214 tests  +2   214 ✅ +2   53s ⏱️ -2s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit e146538. ± Comparison against base commit 7ca8c40.

♻️ This comment has been updated with latest results.

@HajimeKawahara HajimeKawahara mentioned this pull request Sep 15, 2024
7 tasks
@HajimeKawahara HajimeKawahara merged commit 31998d9 into develop Sep 15, 2024
3 checks passed
@HajimeKawahara HajimeKawahara deleted the bug_zsol branch September 21, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant