Skip to content

Public names for the 2/3 mask and the rFFT Parseval weights - #70

Open
rogeriojorge wants to merge 1 commit into
agent/fix-odd-rfft-energyfrom
feature/public-mask-and-weights
Open

rogeriojorge wants to merge 1 commit into
agent/fix-odd-rfft-energyfrom
feature/public-mask-and-weights

Conversation

@rogeriojorge

Copy link
Copy Markdown
Member

Stacked on #9 (base agent/fix-odd-rfft-energy, which adds _rfft_weights); no CI runs on a stacked base, tests were run locally.

Companion codes such as Dark-SPECTRAX import spectrax._diagnostics._rfft_weights and spectrax._simulation._twothirds_mask. This PR adds the public aliases spectrax.rfft_weights and spectrax.twothirds_mask, which are the same function objects, plus a test. There is no behaviour change.

Tests: pytest -n 2 tests gives 31 passed.

twothirds_mask and rfft_weights alias the internal functions so companion
codes and user diagnostics need not import private names.
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.

1 participant