Skip to content

Dont repeat dpss window calc#135

Open
aewallwi wants to merge 16 commits intomainfrom
dont_repeate_dpss_window_calc
Open

Dont repeat dpss window calc#135
aewallwi wants to merge 16 commits intomainfrom
dont_repeate_dpss_window_calc

Conversation

@aewallwi
Copy link
Copy Markdown
Collaborator

@aewallwi aewallwi commented Sep 15, 2021

Eliminate wasteful repeated calculation of DPSS vectors in dpss_operator method.

Depends on #138

@aewallwi aewallwi requested a review from jsdillon September 17, 2021 03:58
@aewallwi aewallwi force-pushed the dont_repeate_dpss_window_calc branch from 2ca7911 to a21d485 Compare September 17, 2021 05:14
@aewallwi aewallwi changed the title Dont repeate dpss window calc Dont repeat dpss window calc Sep 17, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 17, 2021

Codecov Report

Merging #135 (0234509) into main (b1bbe5f) will decrease coverage by 0.05%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #135      +/-   ##
==========================================
- Coverage   87.88%   87.83%   -0.06%     
==========================================
  Files           7        7              
  Lines        1502     1504       +2     
==========================================
+ Hits         1320     1321       +1     
- Misses        182      183       +1     
Flag Coverage Δ
unittests 87.83% <88.88%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
uvtools/dspec.py 97.65% <88.88%> (-0.12%) ⬇️

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 b1bbe5f...0234509. Read the comment docs.

Copy link
Copy Markdown
Member

@jsdillon jsdillon left a comment

Choose a reason for hiding this comment

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

Just one thing that I think should be unit tested and isn't currently.

Comment thread uvtools/dspec.py
#bandwidth * 2.
if fundamental_period is None:
fundamental_period = np.median(np.diff(x)) * len(x)
fundamental_period = np.median(np.diff(x)) * len(x) * 2
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.

I don't understand this change well enough to comment on it, so it's a bit concerning that it's not covered by unit tests.

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