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

module 'tensortools.cpwarp.padded_shifts' has no attribute 'transpose_shift_one_trial' #33

Open
Davidoreilly12 opened this issue Aug 16, 2021 · 3 comments

Comments

@Davidoreilly12
Copy link

The following error occurred when fitting the multishift_hals function. Having looked at the padded_shift script, there is no function with this name..can you advise? Thank you

@Davidoreilly12
Copy link
Author

the names of the functions in both the padded_shift and periodic_shift scripts have changed and this change is not reflected in the multishift.py script...

@ahwillia
Copy link
Collaborator

Thanks! I wasn't paying attention to multishift.py in a while so this got broken. I took a stab at fixing it -- ahwillia@f6d2f0a

Let me know if that stopped the errors. If yes, does the output look reasonable?

@Davidoreilly12
Copy link
Author

Hi,

Thanks for the quick response, following a reinstall of the package, your adjustment has fixed the original error but a new one has come up:


TypingError Traceback (most recent call last)
in
----> 1 multishift_hals(
2 mat['EMGall'].transpose(2,1,0), 3, shiftedonly['Shifts'], shiftedonly['Templates'], min_iter=10,
3 max_iter=1000, tol=1e-4, warp_iterations=50, max_shift=.5,
4 shift_reg=1e-6, periodic_boundaries=False, patience=5, seed=None)

c:\users\david\appdata\local\programs\python\python38\lib\site-packages\numba\core\dispatcher.py in _compile_for_args(self, *args, **kws)
413 e.patch_message(msg)
414
--> 415 error_rewrite(e, 'typing')
416 except errors.UnsupportedError as e:
417 # Something unsupported is present in the user code, add help info

c:\users\david\appdata\local\programs\python\python38\lib\site-packages\numba\core\dispatcher.py in error_rewrite(e, issue_type)
356 raise e
357 else:
--> 358 reraise(type(e), e, None)
359
360 argtypes = []

c:\users\david\appdata\local\programs\python\python38\lib\site-packages\numba\core\utils.py in reraise(tp, value, tb)
78 value = tp()
79 if value.traceback is not tb:
---> 80 raise value.with_traceback(tb)
81 raise value
82

TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Internal error at <numba.core.typeinfer.CallConstraint object at 0x00000200A7010430>.
too many positional arguments
During: resolving callee type: type(CPUDispatcher(<function shift_gram at 0x00000200A6485310>))
During: typing of call at c:\users\david\appdata\local\programs\python\python38\lib\site-packages\tensortools\cpwarp\multishift.py (190)

Enable logging at debug level for details.

File "......\appdata\local\programs\python\python38\lib\site-packages\tensortools\cpwarp\multishift.py", line 190:
def multishift_hals(

# Compute gram matrices.
c, a = periodic_shifts.shift_gram(
^

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

No branches or pull requests

2 participants