Skip to content

Commit

Permalink
Merge pull request #190 from lbluque/main
Browse files Browse the repository at this point in the history
Refactor cython code
  • Loading branch information
lbluque authored Apr 13, 2022
2 parents ce2a82e + e575ca9 commit b53fa58
Show file tree
Hide file tree
Showing 7 changed files with 510 additions and 414 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ def build_extensions(self):

ext = ".pyx" if USE_CYTHON else ".c"
ext_modules = [
Extension(
"src.mc_utils", ["src/mc_utils" + ext], language="c", include_dirs=["src/"]
)
Extension("smol.correlations", ["smol/correlations" + ext], language="c")
]

if USE_CYTHON:
Expand Down
2 changes: 1 addition & 1 deletion smol/cofe/space/clusterspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
)
from smol.cofe.space.basis import IndicatorBasis
from smol.cofe.space.constants import SITE_TOL
from smol.correlations import corr_from_occupancy
from smol.exceptions import SYMMETRY_ERROR_MESSAGE, StructureMatchError, SymmetryError
from src.mc_utils import corr_from_occupancy

__author__ = "Luis Barroso-Luque, William Davidson Richards"

Expand Down
Loading

0 comments on commit b53fa58

Please sign in to comment.