Installation and running Bjet_MCMC
Installation
You first need to clone the Bjet_MCMC Github repo in your local computer with
$ git clone https://github.com/Ohervet/Bjet_MCMC
Ensure all dependencies are installed, see Dependencies. Recommended: create the conda env “bjet-mcmc” from environment.yml using
$ conda env create -f environment.yml
If you use an updated version of Bjet_MCMC from a previously installed version, you might need to update your conda environment, with
$ conda env update -f environment.yml --prune
Then load your environment with
$ conda activate bjet-mcmc
Running Bjet_MCMC for the first time
Create a copy of
mcmc_config_template.txtcalled mcmc_config.txt. For information and customized configuration files, see Configuration file.Ensure the data file is well formatted and is at the relative path specified in
mcmc_config.txt, see Data format.Install Bjet-mcmc with
pip install -e .(in top directory, where setup.py and pyproject.toml are located). This also compiles the C++ code (see Running Bjet manually (bjet_core)).First time use: execute
blazar_initializewithpython blazar_initialize.pyorpython3 blazar_initialize.pydepending on your Python setup. This creates all necessary folders. If usingpython blazar_initialize.py, you must be in the directory bjet_mcmc.Execute
blazar_run_mcmcwithblazar_run_mcmc,python blazar_run_mcmc.pyorpython3 blazar_run_mcmc.pydepending on your Python setup. If usingpython blazar_run_mcmc.py, you must be in the directory bjet_mcmc.Retrieve and check the results (see Outputs).