This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
############################################################################## | |
# | |
# diffpy.srreal by DANSE Diffraction group | |
# Simon J. L. Billinge | |
# (c) 2010 The Trustees of Columbia University | |
# in the City of New York. All rights reserved. | |
# | |
# File coded by: Pavol Juhas | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import numpy | |
def getfitesd(fit): | |
import cStringIO | |
from diffpy.pdffit2 import redirect_stdout | |
# throw away any output from pdffit2 | |
redirect_stdout(cStringIO.StringIO()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: ft=python | |
import sys | |
import os.path | |
Import('env') | |
env.CacheDir('/tmp/my-scons-cache') | |
includedir = sys.prefix + '/include' | |
libdir = sys.prefix + '/lib' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------ | |
#$Date: 2010-01-30 13:59:17 +0000 (Sat, 30 Jan 2010) $ | |
#$Revision: 966 $ | |
#$URL: svn://cod.ibt.lt/cod/cif/1/1000041.cif $ | |
#------------------------------------------------------------------------------ | |
# | |
# This file is available in the Crystallography Open Database (COD), | |
# http://www.crystallography.net/ | |
# | |
# All data on this site have been placed in the public domain by the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import os | |
mydir = os.path.realpath(os.path.dirname(sys.argv[0])) | |
notmydir = lambda d : not (os.path.exists(d) and | |
os.path.realpath(d) == mydir) | |
p = filter(notmydir, sys.path) | |
print('\n'.join(p)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setlocal suffixesadd+=.rst | |
setlocal shiftwidth=3 shiftround | |
setlocal expandtab | |
setlocal textwidth=72 |