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

Validate the integrand in integrate_fold #2

Open
arvoelke opened this issue Jan 28, 2021 · 0 comments
Open

Validate the integrand in integrate_fold #2

arvoelke opened this issue Jan 28, 2021 · 0 comments
Labels
validation Making error messages and such more user friendly

Comments

@arvoelke
Copy link
Contributor

arvoelke commented Jan 28, 2021

Minimal example:

u = gyrus.stimuli(np.zeros(2))
u.integrate_fold(integrand=lambda x: x[0])
AttributeError: 'Slice' object has no attribute 'flatten'

Because Gyrus expects the integrand to return a fold (or, more generally, an ndarray with the same shape as u) and not a scalar operator.

@arvoelke arvoelke added the validation Making error messages and such more user friendly label Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validation Making error messages and such more user friendly
Development

No branches or pull requests

1 participant