Skip to content

check oversampling in 1D#887

Merged
MuawizChaudhary merged 4 commits intokymatio:devfrom
lostanlen:check-oversampling
Jun 18, 2022
Merged

check oversampling in 1D#887
MuawizChaudhary merged 4 commits intokymatio:devfrom
lostanlen:check-oversampling

Conversation

@lostanlen
Copy link
Copy Markdown
Collaborator

@lostanlen lostanlen commented Jun 15, 2022

in check_runtime_args

and write test_check_runtime_args

+ test_check_runtime_args
@lostanlen lostanlen added the 1D Issue with 1D scattering code label Jun 15, 2022
@lostanlen lostanlen requested a review from changhongw June 15, 2022 22:49
Copy link
Copy Markdown
Collaborator

@MuawizChaudhary MuawizChaudhary left a comment

Choose a reason for hiding this comment

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

Should oversampling be set by user?

@lostanlen
Copy link
Copy Markdown
Collaborator Author

lostanlen commented Jun 16, 2022

Yes. although i'll admit i don't love the current semantics. alpha also achieves a form of oversampling when getting the j's from xi's and sigma's. It's also a bit surprising that the stride (if average) is not T but T/2**oversampling

But these are discussions for another day. here the goal is to make sure that the value of oversampling is OK at runtime.

@lostanlen
Copy link
Copy Markdown
Collaborator Author

i've written this to complement #876. The new asserts rely on the assumption that oversampling>=0, but this wasnt being checked at runtime until now

Copy link
Copy Markdown
Collaborator

@MuawizChaudhary MuawizChaudhary left a comment

Choose a reason for hiding this comment

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

Will merge

@MuawizChaudhary MuawizChaudhary merged commit d4d3db7 into kymatio:dev Jun 18, 2022
@lostanlen lostanlen deleted the check-oversampling branch June 25, 2022 16:22
eickenberg pushed a commit that referenced this pull request Jul 5, 2022
* check oversampling in 1D

+ test_check_runtime_args

* check that oversampling is integer

whitespace around operator

* remove auto indentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1D Issue with 1D scattering code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants