xuanxu / starmatrix

Modelling nucleosynthesis of galactic chemical elements
https://starmatrix.readthedocs.io
MIT License
1 stars 3 forks source link

Decouple mass from IMF functions #22

Closed xuanxu closed 3 years ago

xuanxu commented 4 years ago

With this PR the normalization of the initial mass functions are done without weighting by mass. New code includes a separate M_IMF class to get m * imf(m)

Results for IMFs: imfs_normalized

now: imfs_per_m

codecov[bot] commented 4 years ago

Codecov Report

Merging #22 into master will increase coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
+ Coverage   99.68%   99.68%   +<.01%     
==========================================
  Files          11       11              
  Lines         631      636       +5     
  Branches       93       93              
==========================================
+ Hits          629      634       +5     
  Partials        2        2
Impacted Files Coverage Δ
src/intergalactic/model.py 100% <100%> (ø) :arrow_up:
src/intergalactic/imfs.py 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 184c14a...4b17718. Read the comment docs.