Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect array creation at waveform_and_gradients(). #79

Merged

Conversation

btasdelen
Copy link
Collaborator

The way extended trapezoids are added to the waveforms array was incorrect due to the outermost list not being numpy array, (thus, not having .shape property), and being wrapped in an additional list, which caused the shape to be (2, 1, N) instead of (2, N), where N is the number of waveform points. Both of these bugs caused separate exceptions.

@sravan953 sravan953 self-assigned this Aug 6, 2022
@sravan953 sravan953 added the bug-fix Fixes something label Aug 6, 2022
@sravan953 sravan953 merged commit 3156fc7 into imr-framework:dev Aug 6, 2022
@sravan953
Copy link
Collaborator

Thank you!

@btasdelen btasdelen deleted the origin/fix_waveforms_and_times branch August 8, 2022 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix Fixes something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants