py4sci

Table Of Contents

Previous topic

image2chk.py

Next topic

ga_analyze.py

This Page

compare.py

Compare two checkpoint files.

usage: compare.py [-h] [--reset] chk1 chk1

Positional arguments:
chk1 checkpoint file 1
chk2 checkpoint file 2
Options:
--reset=False reset checkpoint files first

Module author: Adam Gagorik <adam.gagorik@gmail.com>

extend.py

Extend a set of simulations.

usage: extend [-h] [--ok] [-r] [--add ADD] [--set SET] [--print PSTEP]
              [--stub STUB]
              [name]

Positional arguments:
name output file name
Options:
--ok=False turn off dry run
-r=False search recursivly
--add=0 steps to add to iterations.real
--set set iterations.real to new value
--print set iterations.print to new value
--stub=ext.{i} simulation job name stub

Module author: Adam Gagorik <adam.gagorik@gmail.com>

script.py

Create a bash script for submitting simulations.

usage: script [-h] [--stub STUB] [--mode {runs,parts,all}] [--depth DEPTH]
              [--comment]
              [name]

Positional arguments:
name output file name
Options:
--stub={relpath}
 simulation job name stub
--mode=all directory search mode
--depth search depth
--comment=False
 comment custom command

Module author: Adam Gagorik <adam.gagorik@gmail.com>

reset.py

Reset a checkpoint file to be more like a new simulation.

usage: reset.py [-h] [--elecs] [--holes] [--notraps] [--nodefects] [--nofix]
                [input] [output]

Positional arguments:
ifile input file
ofile output file
Options:
--elecs=False keep electrons
--holes=False keep holes
--notraps=False
 delete traps
--nodefects=False
 delete defects
--nofix=False do not fix traps

Module author: Adam Gagorik <adam.gagorik@gmail.com>

scan.py

scan a working variable - simply set a parameter in the input file equal to a python list or numpy array. For example, voltage.right = [-1, -2, -3]

usage: scan.py [-h] [--real int] [--fresh int] [--equil int] [--print int]
               [--sort] [--key {None,abs}] [--reverse] [--mode str]
               [--job JOB] [--stub STUB] [--fmt FMT]
               [template]

Positional arguments:
template template input file name
Options:
--real iterations.real when –fresh or –equil are not set
--fresh override iterations.real for fresh runs
--equil override iterations.real for equilibrated runs
--print=1000 iterations.print
--sort=False sort the working variable values
--key key for sorting working variable values (None or abs)
--reverse=False
 reverse the working variable values
--mode what to do (gen or scan)
--job=run stub to use in command script
--stub={working}_{value}
 stub to use for directories; you can use {working}, {value}, {i} in the string
--fmt value format string in stub

Module author: Adam Gagorik <adam.gagorik@gmail.com>

done.py

Search for dat files and report on their progress.

usage: done [-h] [-r] [-d] [stub]

Positional arguments:
stub regex for system searching
Options:
-r=False search recursivly
-d=False show which simulations are not done

Module author: Adam Gagorik <adam.gagorik@gmail.com>