tum-pbs / PhiFlow

A differentiable PDE solving framework for machine learning
MIT License
1.43k stars 193 forks source link

Use of deprecated numpy.object #98

Closed ParticularlyPythonicBS closed 1 year ago

ParticularlyPythonicBS commented 1 year ago

Several parts of the math package use np.object , which is deprecated in the latest version of numpy. This results in an attribute error whenever the phiflow package is imported. AttributeError: module 'numpy' has no attribute 'object'

The error can be fixed by changing np.object usages to np.object_ as per numpy documentation

holl- commented 1 year ago

This is now fixed in develop. You can install it from source or with pip install --upgrade git+https://github.com/tum-pbs/PhiFlow@develop