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

annoying pmesh warning #6

Open
pmcdonal opened this issue Feb 14, 2022 · 3 comments
Open

annoying pmesh warning #6

pmcdonal opened this issue Feb 14, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@pmcdonal
Copy link
Member

Under mpi, I see (np times):

/Users/pmcdonal/opt/anaconda3/lib/python3.7/site-packages/pmesh/domain.py:380: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
self.edges = numpy.asarray(edges)

I don't know if we can edit pmesh, but can be cleared by:
self.edges = numpy.asarray(edges,dtype=object)

@pmcdonal pmcdonal added the bug Something isn't working label Feb 14, 2022
@adematti
Copy link
Member

Yes! at some point I'd like to revisit the pmesh/pfft-python package, e.g. to allow combined OpenMP / MPI parallelization and use the same package within pyrecon. This is not top priority, though...

@dforero0896
Copy link

It seems that for more recent versions of numpy this raises an exception and kills the program. I manually added the fix suggested to line 380 in pmesh and everything is fine but it would be a good idea to update the pmesh repo.

@adematti
Copy link
Member

adematti commented Jul 7, 2023

Hi @dforero0896, I'm using https://github.com/adematti/pmesh
I think it's best to use this one, as it contains a quick fix for MP-Gadget/pmesh#48
(in addition to fixing above issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants