Open fire-bot opened 6 years ago
What version of dask are you using? We had this issue with an earlier version of dask. The current version of dask we use is 0.16.0.
On Wed, Dec 13, 2017 at 11:42 AM, Fire notifications@github.com wrote:
Sent by Pedersen, Christian (christian.pedersen.17@ucl.ac.uk christian.pedersen.17@ucl.ac.uk). Created by fire https://fire.fundersclub.com/.
Hi there,
I'm trying to plot some visualisations of MP-Gadget bigfile outputs using Nbodykit and am having a bit of trouble. I'm attempting to follow the notebook attached, but get the following errors:
from nbodykit.lab import pcat = BigFileCatalog('snap_005/', dataset='1/', header='Header') pcat.attrs['BoxSize'] = pcat.attrs['BoxSize'] [1, 1, 1] prev = pcat.to_mesh(Nmesh=128).preview() Traceback (most recent call last): File "", line 1, in File "/share/apps/anaconda/python3.5/lib/python3.5/site-packages/nbodykit/base/mesh.py", line 329, in preview field = self.to_field(mode='real') File "/share/apps/anaconda/python3.5/lib/python3.5/site-packages/nbodykit/base/mesh.py", line 207, in to_field real = self.to_real_field() File "/share/apps/anaconda/python3.5/lib/python3.5/site-packages/nbodykit/base/catalogmesh.py", line 345, in to_real_field Position, Weight, Value, Selection = self.read(columns) File "/share/apps/anaconda/python3.5/lib/python3.5/site-packages/nbodykit/base/catalog.py", line 641, in read return [self[col] for col in columns] File "/share/apps/anaconda/python3.5/lib/python3.5/site-packages/nbodykit/base/catalog.py", line 641, in return [self[col] for col in columns] File "/share/apps/anaconda/python3.5/lib/python3.5/site-packages/nbodykit/base/catalog.py", line 372, in getitem return ColumnAccessor(memowner, r, is_default=is_default) File "/share/apps/anaconda/python3.5/lib/python3.5/site-packages/nbodykit/base/catalog.py", line 42, in new daskarray.shape) TypeError: object() takes no parameters
If I try and get the preview mesh object seperately I get:
mesh=pcat.to_mesh(Nmesh=128) prev=mesh.preview
prev <bound method MeshSource.preview of (BigFileCatalog(size=16777216, file='') as CatalogMesh)>
However I still can't find a way to get to the data, as this object is still a method, when looking at the documentation and tutorials https://github.com/bccp/nbodykit/blob/c0a88558994e9555ad53936e0d231789698cd2f6/docs/source/index.rst it looks like it should be a data file here. In fact, when I try and run this tutorial I get the same error:
from nbodykit.lab import catalog = UniformCatalog(nbar=100, BoxSize=1.0) BoxSize = 2500. catalog['Position'] = BoxSize # re-normalize units of Position Traceback (most recent call last): File "", line 1, in File "/share/apps/anaconda/python3.5/lib/python3.5/site-packages/nbodykit/base/catalog.py", line 372, in getitem return ColumnAccessor(memowner, r, is_default=is_default) File "/share/apps/anaconda/python3.5/lib/python3.5/site-packages/nbodykit/base/catalog.py", line 42, in new daskarray.shape) TypeError: object() takes no parameters
Do you have any idea what's going wrong - is it a problem with my install?
Thanks,
Chris
Attachments:
- NbodykitPreview.html https://firebot-prod-media.s3.amazonaws.com:443/email-attachments/6cebad43-d51f-4685-81a3-561987bf0628/NbodykitPreview.html
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bccp/nbodykit/issues/449, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIbTAatabLBkMeZnxQM-KRdc_OkWRM4ks5tACiMgaJpZM4RBExP .
Sent by Pedersen, Christian (christian.pedersen.17@ucl.ac.uk). Created by fire.
Hi there,
I'm trying to plot some visualisations of MP-Gadget bigfile outputs using Nbodykit and am having a bit of trouble. I'm attempting to follow the notebook attached, but get the following errors:
If I try and get the preview mesh object seperately I get:
However I still can't find a way to get to the data, as this object is still a method, when looking at the documentation and tutorials it looks like it should be a data file here. In fact, when I try and run this tutorial I get the same error:
Do you have any idea what's going wrong - is it a problem with my install?
Thanks,
Chris
Attachments: