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

flatten: 'FDRV' object has no attribute 'ps' #15

Open
pelegm opened this issue Nov 7, 2014 · 0 comments
Open

flatten: 'FDRV' object has no attribute 'ps' #15

pelegm opened this issue Nov 7, 2014 · 0 comments

Comments

@pelegm
Copy link
Owner

pelegm commented Nov 7, 2014

The following

In [4]: ps = drv.pspace.FDPSpace([1] * 8 + [0] + [1]*2 + [0])

In [5]: d = drv.rv.FDRV('d', ps, lambda x: x**2)

In [6]: d.flatten()

raises

Traceback (most recent call last):
  File "<ipython-input-6-a091bca363af>", line 1, in <module>
    d.flatten()
  File "drv/rv.py", line 187, in flatten
    for p, x in zip(self.ps, self.xs):
AttributeError: 'FDRV' object has no attribute 'ps'
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