durham-qlm / ElecSus

A python program to calculate the weak-probe electric susceptibility of an atomic ensemble.
Apache License 2.0
35 stars 22 forks source link

Doesn't run in python 3.8 #4

Open quantumphysicist opened 3 years ago

quantumphysicist commented 3 years ago

In python 3.8, there is some issue with the "time" module.

I got it working by installing ElecSus into a python 3.5 conda environment.

To install ElecSus, first do the following: conda create -n python3.1 python=3.5 conda activate python3.1

conda install -c anaconda wxpython=2.8 conda install -c anaconda scipy conda install -c anaconda numpy conda install -c conda-forge matplotlib conda install -c anaconda psutil conda install -c conda-forge lmfit

markzentile commented 3 years ago

Thanks for letting us know. I'm in the process of updating the code to replace instances of time.clock() which is deprecated in python 3.8. Unfortunately python 3.8 isn't compatible with many versions of wxpython, so still won't allow ElecSus to be used with python 3.8 for now.

jameskeaveney commented 3 years ago

I've created a dev branch that works with python 3.8 now, but I've not tested all functionality yet. I'm using wxpython version 4.1.0 and python 3.8.1 (64-bit) and it seems to be running fine.