Skip to content

Addressing #258 - #261

Merged
prisae merged 3 commits into
mainfrom
dev
Nov 18, 2026
Merged

prisae merged 3 commits into
mainfrom
dev

Conversation

@prisae

@prisae prisae commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Addressing #258 from @rcgiri-physics - the FFTLog internal routine truncated the decades, giving a few points less and so actually a bit less than the asked for pts_per_dec. There won't be an actual difference in result (as usually there are loads of points needed), except for some edge cases.

@coveralls

coveralls commented Nov 18, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 44317099546

Coverage remained the same at 99.31%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: 1 of 1 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 3189
Covered Lines: 3167
Line Coverage: 99.31%
Coverage Strength: 6.77 hits per line

💛 - Coveralls

@prisae

prisae commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

This change screws some examples, so further testing is needed to prove that it is actually improving things. See last figure of https://empymod--261.org.readthedocs.build/en/261/gallery/tdomain/step_and_impulse.html and compare it to the last figure of https://empymod.emsig.xyz/en/stable/gallery/tdomain/step_and_impulse.html.

@prisae

prisae commented Nov 18, 2026 •

Copy link
Copy Markdown
Member Author

Going for a minimum-diff variation

n = np.int64((maxf - minf)*targ['pts_per_dec'])

Whether or not there should be a ceil, and a final + 1, is debatable, but of little to no importance to real world examples. The created frequencies will stand for certain times, from which the actual times have to be interpolated either way. So any of these possibilities is fine, it is a rough number to give approximately pts_per_dec. However, changing it now might screw unnecessarily with some folks' examples.

Also, there is no check whether or not frequency or time is not of zero length. Should be done, but this is an entirely different issue.

@prisae
prisae merged commit ec791e5 into main Nov 18, 2026
15 of 16 checks passed
@prisae
prisae deleted the dev branch November 18, 2026 14:41
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.

2 participants