Skip to content

Replace cosmology inv_efunc internal methods with cython. - #4127

Merged
eteq merged 4 commits into
astropy:masterfrom
aconley:cosmo_cython
Sep 24, 2015
Merged

eteq merged 4 commits into
astropy:masterfrom
aconley:cosmo_cython

Conversation

@aconley

@aconley aconley commented Sep 6, 2015

Copy link
Copy Markdown
Contributor

* All unit tests pass, and some more added.
* Also done for massive neutrinos.
* Speedup is ~ 10-14x over scalar version -- so a good 200x
  faster than the original code.
@aconley aconley changed the title Replace inv_efunc internal methods with cython. Replace cosmology inv_efunc internal methods with cython. Sep 6, 2015

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is definitely helpful to understanding the code better.

@astrofrog

Copy link
Copy Markdown
Member

Nice example of why the coverage calculation as a percentage is silly (no actual lines were added that aren't covered)...

@nhmc - since you are the secondary maintainer, I've assigned this to you for a review

Comment thread astropy/cosmology/core.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

typo 'surprisingly'

@nhmc

nhmc commented Sep 11, 2015

Copy link
Copy Markdown
Contributor

This looks excellent to me, thanks for the heads up.

@aconley

aconley commented Sep 24, 2015

Copy link
Copy Markdown
Contributor Author

So, where are we on this? I presume it will wait for 1.2.

@eteq

eteq commented Sep 24, 2015

Copy link
Copy Markdown
Member

@aconley - Actually, I'm just waiting for appveyor to finish (it failed in what I think is a spurious way, so I restarted it a few hours ago), and will merge it when it's done if it passes. (So that would then easily make the 1.1 cut).

@eteq eteq added this to the v1.1.0 milestone Sep 24, 2015
@eteq

eteq commented Sep 24, 2015

Copy link
Copy Markdown
Member

Aha, and there it went! Merging now. Thanks @aconley!

eteq added a commit that referenced this pull request Sep 24, 2015
Replace cosmology inv_efunc internal methods with cython for speed
@eteq
eteq merged commit d5acbdc into astropy:master Sep 24, 2015
ntessore pushed a commit to glass-dev/cosmology that referenced this pull request Dec 7, 2020
Replace cosmology inv_efunc internal methods with cython for speed
ntessore pushed a commit to glass-dev/cosmology that referenced this pull request Dec 8, 2020
Replace cosmology inv_efunc internal methods with cython for speed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants