NREL / ditto

DiTTo is a Distribution Transformation Tool that aims at providing an open source framework to convert various distribution systems modeling formats.
https://nrel.github.io/ditto/
BSD 3-Clause "New" or "Revised" License
67 stars 35 forks source link

Attribute error #420

Open pemachan opened 1 year ago

pemachan commented 1 year ago

I am trying to run the example "ieee_8500_opendss_to_cyme.py" on Jupyter notebook. When I run "from ditto.readers.opendss.read import Reader" I get an error "AttributeError: module 'numpy.typing' has no attribute 'NDArray'"

PMeira commented 1 year ago

Hi, This is probably due to an issue in DSS-Python. If you can upgrade NumPy, it should work fine (numpy.typing.NDArray was introduced in NumPy 1.21), e.g.

pip install "numpy>=1.21"

or

conda install "numpy>=1.21"

The dependency constraint will be fixed in the next release there.

EDIT: the packages have been updated, future installations should work fine