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

'ProductDPSpace' object has no attribute 'integrate' #10

Open
pelegm opened this issue Oct 23, 2014 · 0 comments
Open

'ProductDPSpace' object has no attribute 'integrate' #10

pelegm opened this issue Oct 23, 2014 · 0 comments

Comments

@pelegm
Copy link
Owner

pelegm commented Oct 23, 2014

Should be implemented. So far:

In [2]: import drv.real

In [3]: r = drv.real.FRDRV('r', drv.pspace.FDPSpace(range(10)[::-1]), lambda x: x**2)

In [4]: (r+1).mean

raises

Traceback (most recent call last):
  File "<ipython-input-4-b4acbe6f318b>", line 1, in <module>
    (r+1).mean
  File "drv/real.py", line 62, in mean
    return self.moment(1)
  File "drv/real.py", line 123, in moment
    return self.pspace.integrate(self._moment_func(n))
AttributeError: 'ProductDPSpace' object has no attribute 'integrate'
pelegm pushed a commit that referenced this issue Oct 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant