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

Hotfix/small improvements #22

Merged
merged 23 commits into from
Jun 1, 2020
Merged

Hotfix/small improvements #22

merged 23 commits into from
Jun 1, 2020

Conversation

thangleiter
Copy link
Member

A collection of small improvements.

@coveralls
Copy link

coveralls commented Apr 24, 2020

Pull Request Test Coverage Report for Build 145

  • 109 of 109 (100.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 93.944%

Totals Coverage Status
Change from base Build 121: 0.02%
Covered Lines: 1725
Relevant Lines: 1809

💛 - Coveralls

Using np.expm1 = np.exp - 1 is not only faster than calling cexp - 1 but
also more precise for small arguments, thus alleviating the need for
masking small values and manually setting the small-arg limit.

We can also precompute i*EdE by manually assigning the imaginary part of
a pre-allocated array using the out kwarg since we need it both in the
exponent and the denominator of the integral.
Can assign real and imaginary parts directly using the out kwarg of
np.cos and np.sin without using an intermediate buffer array.
Makes tests more readable
@thangleiter thangleiter merged commit 52230d6 into master Jun 1, 2020
@thangleiter thangleiter deleted the hotfix/small_improvements branch July 6, 2020 06:50
@thangleiter thangleiter restored the hotfix/small_improvements branch July 6, 2020 06:50
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.

None yet

2 participants