keurfonluu / stochopy

Python library for stochastic numerical optimization
https://github.com/keurfonluu/stochopy
BSD 3-Clause "New" or "Revised" License
92 stars 16 forks source link

cannot import name 'Evolutionary' from 'stochopy' #10

Closed SeismoZhou closed 2 years ago

SeismoZhou commented 2 years ago

Hi keurfonluu,

Thank you for sharing such a wonderful package!

I try to use the your dispersion inversion code, and find that there is a problem with: from stochopy import Evolutionary ImportError: cannot import name 'Evolutionary' from 'stochopy' (~/.conda/envs/pg/lib/python3.8/site-packages/stochopy/__init__.py)

I installed evodcinv with pip. and the version of stochopy is (2.0.1)

Do you know where this problem might come from?

Thanks in advance.

Kind regards, Wen

keurfonluu commented 2 years ago

Hi @SeismoZhou ,

Apology, I haven't updated evodcinv to the latest version of stochopy which breaks compatibility. Please downgrade stochopy to version 1.7.3.

pip install stochopy==1.7.3

I'll try to update evodcinv when I have more free time to spare.

SeismoZhou commented 2 years ago

Thank you very much for the response! When downgraded stochopy, the inversion starts working!

All the best! Wen