This repo is an example provided in relation to our list of research tools. Here, we make simple ASCII plots for AFQMC based on gnuplot in 'dumb' terminal mode. Currently, only energy versus total projection time curves for output in afqmclab's format are implemented; however, a wider variety of plots/formats can be easily added by request.
This is also a good example of the 'argparse' python module which alows command line arguments to be easily parsed within python. It also automatically generates a 'help' option.
The script can be easily installed in several ways. Here is my favorite way to install for Linux!:
- clone this repository in a directory of your choice ( lets say, ~/scripts/ascii_plots )
mkdir -p ~/scripts
cd ~/scripts/
git clone [email protected]:bkesk/AFQMC_ascii_plots.git ascii_plots
- make a soft link to the script within your ~/bin/ directory
cd ~/bin/
ln -s ~/scripts/ascii_plots/afqmc_view.py afqmc_view
- make it executable
chmod u+x afqmc_view
Now, you should be able to run the command using only
afqmc_view <options>
Here is a minimal example of using this script. You must have AFQMC results from afqmclab, first. Then, run
afqmc_view
from within the directory containing the results.