8000 ClausenFFT undefined · Issue #6 · risi-kondor/Snob2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ClausenFFT undefined #6

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 stat 8000 ement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dufgab opened this issue Sep 12, 2023 · 2 comments
Open

ClausenFFT undefined #6

dufgab opened this issue Sep 12, 2023 · 2 comments

Comments

@dufgab
Copy link
dufgab commented Sep 12, 2023
import snob
fft=snob.ClausenFFT(3)

gives

AttributeError Traceback (most recent call last)
Cell In[1], line 2
1 import snob
----> 2 fft=snob.ClausenFFT(3)
AttributeError: module 'snob' has no attribute 'ClausenFFT'

and

dir(snob)

returns

['ConvolveFn',
 'IntegerPartition',
 'IntegerPartitions',
 'InvFn',
 'LeftTranslateFn',
 'Permutation',
 'RightTranslateFn',
 'Sn',
 'SnCClass',
 'SnCharacter',
 'SnElement',
 'SnFunction',
 'SnIrrep',
 'SnType',
 'StandardYoungTableaux',
 'YoungTableau',
 '__builtins__',
 '__cached__',
 '__doc__',
 '__file__',
 '__loader__',
 '__name__',
 '__package__',
 '__path__',
 '__spec__',
 'device_id',
 'torch']

Did I miss anything?
Thanks! Looking forward to playing around with this!

@risi-kondor
Copy link
Owner

Sorry about this! It looks like it was just a missing import. Could you please try again?

@dufgab
Copy link
Author
dufgab commented Sep 18, 2023

Thanks, ClausenFFT is now available.
It works well if I pass a snob_base.SnFunction as argument, but not with a snob.SnFunction:

import snob 
N=3
f=snob.SnFunction.gaussian(N)
fft=snob.ClausenFFT(N)
F=fft(f)

returns

TypeError Traceback (most recent call last)
Cell In[8], line 1
----> 1 F=fft(f)

TypeError: call(): incompatible function arguments. The following argument types are supported:

  1. (self: snob_base.ClausenFFT, arg0: snob_base.SnFunction) -> snob_base.SnVec
  2. (self: snob_base.ClausenFFT, arg0: snob_base.SnOverSmFunction) -> snob_base.SnVec

Invoked with: <snob_base.ClausenFFT object at 0x109053970>, <SnFunction n=3>

But

import snob 
from snob_base import SnFunction
N=3
f=SnFunction.gaussian(N)
fft=snob.ClausenFFT(N)
F=fft(f)

works.
Thanks for your help.

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
0