Skip to content

Commit

Permalink
Merge pull request #187 from libAtoms/23_fix_test_sympy
Browse files Browse the repository at this point in the history
fix: protecting sympy imports in manybody potential tests
  • Loading branch information
pastewka authored Jan 4, 2024
2 parents 5ffd0a6 + a195858 commit 5089fff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/manybody/test_manybody_potentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,21 @@
import numpy.testing as nt

from types import SimpleNamespace

from manybody_fixtures import (
pair_potential,
three_body_potential,
has_sympy,
analytical_pair,
analytical_triplet,
FiniteDiff,
)

if has_sympy:
from manybody_fixtures import (
analytical_pair,
analytical_triplet,
)



def evaluate(pot, *args):
data = SimpleNamespace()
Expand Down

0 comments on commit 5089fff

Please sign in to comment.