Many parameters used by FireWorks can be changed to suit your needs. Some examples include:
A sample FW_config file (that does not change any settings) is located in the FireWorks tutorial directory: <INSTALL_DIR>/fw_tutorials/fw_config/FW_config.yaml.
Note
If you do both (a) and (b), the config file in your <INSTALL_DIR> will take precedence.
To test whether your config file is activated, run any LaunchPad command:
lpad version
You should see text printed to the Terminal saying successfully loaded your custom FW_config.yaml!. You can remove this text by deleting the ECHO_TEST parameter from your FW_config.yaml file.
It can be annoying to manually type in the -l, -w, and -q parameters in FireWorks scripts (corresponding to the locations of the LaunchPad, FireWorker, and QueueParams files, respectively). You can set these parameters once and for all by specifying the following variables in your FWConfig:
LAUNCHPAD_LOC: fullpath/to/my_launchpad.yaml
FWORKER_LOC: fullpath/to/my_fworker.yaml
QUEUEPARAMS_LOC: fullpath/to/my_queueparams.yaml
.. note:: be sure to use full paths, not relative paths or BASH shortcuts!
Once you set these parameters in your FWConfig, you no longer have to worry about typing them ever again!
Note
An alternate strategy is to set a single parameter called CONFIG_FILE_DIR. This should be the full path to a directory containing files named my_launchpad.yaml, my_fworker.yaml, and my_queueparams.yaml. FireWorks looks for these files in the CONFIG_FILE_DIR if it cannot find them elsewhere. If unset in the FWConfig, the CONFIG_FILE_DIR is set to the directory you are running your FW script in.
If you’ve placed Python code for some of your own custom FireTasks in an external Python package named my_package.firetasks, you can notify FireWorks of the FireTasks in this directory by adding the packages to your config:
ADD_USER_PACKAGES:
- my_package.firetasks
Note
Make sure your package is in your PYTHONPATH! For example, typing from my_package import firetasks in an interactive Python terminal should succeed.
A few basic parameters that can be tweaked are:
Some parameters that you can change, but probably shouldn’t, are:
For a full list of parameters that can be changed, you can browse the fw_config.py file in the FireWorks source.