Ignore Cython c files.
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@ -5,3 +5,7 @@ dist/
|
||||
.cache/
|
||||
*.cpp
|
||||
/gromacs
|
||||
logarithmic.*.so
|
||||
logarithmic.c
|
||||
coordinates.*.so
|
||||
coordinates.c
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
# distutils: sources = mdevaluate/gromacs/compression.c
|
||||
# distutils: sources = pygmx/gromacs/compression.c
|
||||
|
||||
from cython cimport view
|
||||
from array import array
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -2,9 +2,9 @@ import xdrlib
|
||||
import io
|
||||
import os
|
||||
from .coordinates import decompress
|
||||
from ..utils import hash_anything, merge_hashes
|
||||
from functools import partial
|
||||
import numpy as np
|
||||
import hashlib
|
||||
|
||||
TRR_MAGIC = 1993
|
||||
XTC_MAGIC = 1995
|
||||
@ -352,7 +352,11 @@ class XTCReader(BaseReader):
|
||||
return [self[i].time for i in indices]
|
||||
|
||||
def __hash__(self):
|
||||
return merge_hashes(hash_anything(self.filename), hash_anything(self._cache))
|
||||
m = hashlib.md5()
|
||||
m.update(self.filename.encode())
|
||||
m.update(str(self._cache).encode())
|
||||
return int.from_bytes(m.digest(), 'big')
|
||||
# return merge_hashes(hash_anything(self.filename), hash_anything(self._cache))
|
||||
|
||||
|
||||
class TRRHeader:
|
||||
|
12
setup.py
12
setup.py
@ -35,10 +35,10 @@ library_dirs = [os.path.abspath(p) for p in library_dirs]
|
||||
|
||||
|
||||
extensions = [
|
||||
# Extension('mdevaluate.gromacs.coordinates', [
|
||||
# 'mdevaluate/gromacs/coordinates.pyx'], include_dirs=include_dirs),
|
||||
# Extension('mdevaluate.gromacs.logarithmic', [
|
||||
# 'mdevaluate/gromacs/logarithmic.pyx'], include_dirs=include_dirs),
|
||||
Extension('pygmx.gromacs.coordinates', [
|
||||
'pygmx/gromacs/coordinates.pyx'], include_dirs=include_dirs),
|
||||
Extension('pygmx.gromacs.logarithmic', [
|
||||
'pygmx/gromacs/logarithmic.pyx'], include_dirs=include_dirs),
|
||||
Extension('pygmx.tpxio',
|
||||
sources=['pygmx/tpxio.pyx'],
|
||||
include_dirs=include_dirs,
|
||||
@ -76,8 +76,8 @@ setup(
|
||||
name='pygmx',
|
||||
description='Python wrapper for gromacs library.',
|
||||
author_email='niels.mueller@physik.tu-darmstadt.de',
|
||||
packages=['pygmx', ],
|
||||
version='0.0.2',
|
||||
packages=['pygmx', 'pygmx.gromacs'],
|
||||
version='0.1',
|
||||
requires=['numpy', 'Cython'],
|
||||
ext_modules=cythonize(extensions),
|
||||
)
|
||||
|
Reference in New Issue
Block a user