py4sci

Table Of Contents

Previous topic

fit

Next topic

isotropic.py

This Page

calculate.py

Calculate the current in a dat (or pkl) file.

usage: calculate.py [-h] [--stub stub] [--csv] [--pkl] [--excel] [input]

Positional arguments:
ifile input file
Options:
--stub=calculated
 output file stub
--csv=False save csv file
--pkl=False save pkl file
--excel=False save excel file (slow)

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

combine.py

Combine the output of a series of dat files. The dat files should be in a series of directories labeled part.0, part.1, part.2, etc.

usage: combine.py [-h] [-r]

Options:
-r=False search recursivly for parts
adam@work:~$ ls
part.0 part.1
adam@work:~$ python combine -r
(  1/  1) : .
adam@work:~$ ls
combined.pkl.gz part.0 part.1

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

gather.py

Gather the output of a series of pickles. The pickes should have been made using ‘combine.py’.

usage: gather.py [-h] [--stub stub] [--last #] [--equil #] [-g]

Options:
--stub=gathered
 output file stub
--last=-1 last step
--equil equil step
-g=False gathered output is grouped by os.dirname

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

equil.py

Check simulation(s) for equilibration.

usage: equil [-h] [-r] [--ycol YCOL] [--legend] [--zoom ZOOM] [--show]
             [--save]
             [pkl [pkl ...]]

Positional arguments:
pkls input files
Options:
-r=False search for files recursivly
--ycol=drain:current
 ycolumn to plot
--legend=False show legend
--zoom=0.05 zoom factor
--show=False show plot
--save=False save plot

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

solar.py

Script to analyze solar cell IV curve.

usage: solar.py [-h] [-r] [--stub stub] [--csv] [--mode str] [--shift float]
                [--guess float] [--recycle] [--order int] [--kind str]
                [--show] [--plot]
                [pkls [pkls ...]]

Positional arguments:
pkls input files
Options:
-r=False search recursivly for files
--stub= output file stub
--csv=False save CSV file
--mode=interp1d
 fit method
--shift=1.5 voltage shift
--guess v_oc guess
--recycle=False
 recycle current-opt paramters as initial guess for power fit
--order=8 order of power series fit
--kind=cubic interpolation type for interp1d
--show=False open matplotlib window
--plot=False plot iv curves

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

table.py

Gather output from pkl files into table.

usage: table.py [-h]

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