Skip to content

Change the axis of np.unwrap #7

Open
SSL32081 wants to merge 1 commit intoCosmoStatGW:masterfrom
SSL32081:fix-unwrap
Open

Change the axis of np.unwrap #7
SSL32081 wants to merge 1 commit intoCosmoStatGW:masterfrom
SSL32081:fix-unwrap

Conversation

@SSL32081
Copy link

@SSL32081 SSL32081 commented Jan 26, 2025

In the case of an array input of parameters, the shape of the strain is N_freq × N_params.
For example, if there are 10,000 frequency bins and 100 parameters, then hp.shape = (10 000, 100).

However, the default behaviour of np.unwrap is along the last axis; in this case, it would be along the axis of the parameters.

This PR forces the unwrap to be along the frequency axis, which is the desired behaviour when computing the phase of the waveform.

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