Skip to content

Commit

Permalink
avoid the call of pyocse to render doc
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhu2017 committed Aug 29, 2024
1 parent 3c479a7 commit b8f1064
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pyxtal/interface/lammpslib.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
from ase.constraints import UnitCellFilter, FixSymmetry
from ase.optimize import LBFGS
from ase.optimize.fire import FIRE
from lammps import lammps
try:
from lammps import lammps
except:
raise NotImplementedError('PLZ INSTALL lammps first')


#
Expand Down
4 changes: 3 additions & 1 deletion pyxtal/optimize/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from pymatgen.analysis.structure_matcher import StructureMatcher
from numpy.random import Generator

from pyocse.parameters import ForceFieldParameters, compute_r2, get_lmp_efs
from pyxtal.molecule import find_rotor_from_smile, pyxtal_molecule
from pyxtal.representation import representation
from pyxtal.util import new_struc
Expand Down Expand Up @@ -159,6 +158,8 @@ def __init__(
self.parameters = None
self.ff_opt = False
else:
from pyocse.parameters import ForceFieldParameters

self.ff_parameters = ff_parameters
self.reference_file = reference_file
self.parameters = ForceFieldParameters(
Expand Down Expand Up @@ -367,6 +368,7 @@ def ff_optimization(self, xtals, N_added, N_min=50, dE=2.5, FMSE=2.5):
FMSE (float): the cutoff Force MSE value
"""
from pyocse.utils import reset_lammps_cell
from pyocse.parameters import compute_r2, get_lmp_efs

numMols = [xtal.numMols for xtal in xtals]
xtals = [xtal.to_ase(resort=False) for xtal in xtals]
Expand Down

0 comments on commit b8f1064

Please sign in to comment.