Loading LICENSE +1 −1 Original line number Diff line number Diff line Copyright 2020-2022, Piotr Zolnierczuk, Oak Ridge National Laboratory Copyright 2020-2025, Piotr Zolnierczuk, Oak Ridge National Laboratory Copyright 2012-2020, Piotr Zolnierczuk, Forschungszentrum Juelich GmbH Redistribution and use in source and binary forms, with or without Loading bin/check_for_tests.sh +2 −0 Original line number Diff line number Diff line #!/bin/bash # simple test coverage script for f in $(find pysen -name '[a-z]*.py'); do tm=$(echo $f | sed -e 's|/|_|g' -e 's|pysen|test|g'); if [ ! -f test/$tm ]; then Loading bin/combine_xyz.sh +2 −0 Original line number Diff line number Diff line #!/bin/bash # OBSOLETE: (pre-nexus era script) first=1 for f in $*; do base=`basename $f .dat` Loading bin/pycompile.pydeleted 100755 → 0 +0 −38 Original line number Diff line number Diff line #!/usr/bin/env python import os import sys import shutil import compileall import argparse #!/usr/bin/env python def pycleanup(path): print 'cleaning', path for filename in os.listdir(path): fullpath = os.path.join(path, filename) if filename == "__pycache__": shutil.rmtree(fullpath) elif os.path.isdir(fullpath): pycleanup(fullpath) elif filename[-3:] == 'pyc' or filename[-3:] == 'pyo': print '- ' + fullpath os.remove(fullpath) parser = argparse.ArgumentParser(description='pycompile') parser.add_argument('dir', metavar='directory', help='directory to process', nargs='+') parser.add_argument('--cleanup', '-c', dest='cleanup', action='store_true', help='cleanup instead of compile') args = parser.parse_args() if args.cleanup: print "cleanup" for path in args.dir: pycleanup(path) else: print "compile all" for path in args.dir: compileall.compile_dir(path) bin/readfile.pydeleted 100755 → 0 +0 −12 Original line number Diff line number Diff line #!/usr/bin/env python import sys lines = open(sys.argv[1],'rt').readlines() Loading
LICENSE +1 −1 Original line number Diff line number Diff line Copyright 2020-2022, Piotr Zolnierczuk, Oak Ridge National Laboratory Copyright 2020-2025, Piotr Zolnierczuk, Oak Ridge National Laboratory Copyright 2012-2020, Piotr Zolnierczuk, Forschungszentrum Juelich GmbH Redistribution and use in source and binary forms, with or without Loading
bin/check_for_tests.sh +2 −0 Original line number Diff line number Diff line #!/bin/bash # simple test coverage script for f in $(find pysen -name '[a-z]*.py'); do tm=$(echo $f | sed -e 's|/|_|g' -e 's|pysen|test|g'); if [ ! -f test/$tm ]; then Loading
bin/combine_xyz.sh +2 −0 Original line number Diff line number Diff line #!/bin/bash # OBSOLETE: (pre-nexus era script) first=1 for f in $*; do base=`basename $f .dat` Loading
bin/pycompile.pydeleted 100755 → 0 +0 −38 Original line number Diff line number Diff line #!/usr/bin/env python import os import sys import shutil import compileall import argparse #!/usr/bin/env python def pycleanup(path): print 'cleaning', path for filename in os.listdir(path): fullpath = os.path.join(path, filename) if filename == "__pycache__": shutil.rmtree(fullpath) elif os.path.isdir(fullpath): pycleanup(fullpath) elif filename[-3:] == 'pyc' or filename[-3:] == 'pyo': print '- ' + fullpath os.remove(fullpath) parser = argparse.ArgumentParser(description='pycompile') parser.add_argument('dir', metavar='directory', help='directory to process', nargs='+') parser.add_argument('--cleanup', '-c', dest='cleanup', action='store_true', help='cleanup instead of compile') args = parser.parse_args() if args.cleanup: print "cleanup" for path in args.dir: pycleanup(path) else: print "compile all" for path in args.dir: compileall.compile_dir(path)
bin/readfile.pydeleted 100755 → 0 +0 −12 Original line number Diff line number Diff line #!/usr/bin/env python import sys lines = open(sys.argv[1],'rt').readlines()