Skip to content

Commit

Permalink
move jit import out of exception
Browse files Browse the repository at this point in the history
  • Loading branch information
arm61 committed Dec 19, 2018
1 parent 0e927db commit db3d102
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pylj/pairwise.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from __future__ import division
import numpy as np

from numba import jit
try:
from pylj import comp as heavy
except ImportError:
print("WARNING, using slow force and energy calculations")
from pylj import pairwise as heavy
from numba import jit


@jit
Expand Down

0 comments on commit db3d102

Please sign in to comment.