qzhu2017 / PyXtal

A code to generate atomic structure with symmetry
MIT License
234 stars 59 forks source link

pyxtal_test.py fails with missing import of get_layer #179

Closed rschireman closed 2 years ago

rschireman commented 2 years ago

When installing pyXtal into a conda environment with pip install --upgrade git+https://github.com/qzhu2017/PyXtal.git@master, I obtain an ImportError when running the test script:

ImportError: cannot import name 'get_layer' from 'pyxtal.symmetry'

It looks like get_layer is not defined in symmetry.py. Perhaps the test script hasn't been updated with the string of recent commits? The line throwing the error in pyxtal_test.py is:

from pyxtal.symmetry import ( Group, get_wyckoffs, get_layer, get_rod, get_point, )

qzhu2017 commented 2 years ago

This has been fixed in v0.3.9