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

breaks method using only scalars for nobs > 1 #10

mikofski opened this Issue Feb 22, 2017 · 0 comments


None yet
1 participant

mikofski commented Feb 22, 2017

if wrapped method has scalar args and is called with multiple observations, uncwrapper will expand that scalar into a ndarray same size as nobs on L62 of partial_derivative(). So if the wrapped method can't handle that normally scalar arg as a sequence, then uncwrapper breaks the method.

EG: SolarUtils solposAM(location, datetime, weather) likes location to have scalar (latitude, longitude, tz) only, but if weather is a list of temperatures and pressures, then uncwrapper turns lat, lon into lists too, breaking solposAM.

temporary workaround is to wrap the method and handle the scalar inputs before passing them in.

@mikofski mikofski self-assigned this Feb 22, 2017

@mikofski mikofski added the bug label Feb 22, 2017

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