From f997a78b99a3e2dce7c6e641c41937620c383584 Mon Sep 17 00:00:00 2001 From: bking-astro <71393384+bking-astro@users.noreply.github.com> Date: Fri, 5 Apr 2024 10:46:54 -0600 Subject: [PATCH] Update index.rst added internetless cluster intructions --- doc/index.rst | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/doc/index.rst b/doc/index.rst index 45b1dcdf..815ae78a 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -409,6 +409,37 @@ and follow the instructions above. module load gcc/9.2.0 module load openmpi/4.1.1 +Internetless Clusters +^^^^^^^^^^^^^^^^^^^^^ + +Some cluster resources may not have access to the internet or could block some forms of data transfer. This will cause some difficulties with certain packages and will require some fixes to how NMMA interacts with them and changes to how you call some commands in NMMA. This can also affect how you install NMMA on the cluster. Because the cluster is in some way restricted, it may be that the `conda install nmma -c conda-forge` or the `pip install nmma` commands don't work. Thus to install NMMA, you will need to install from the source. To begin, you will want to copy the NMMA repository from your local to the cluster using an `scp` or `rsync` commmand because likely the git commands will fail. Once NMMA is downloaded to the cluster, navigate to the main directory and run + +.. code:: + pip install -r requirements.txt + pip install . + +and check that the installation was successful by running the first check for NMMA given above. After installation, the next most likely difference is how NMMA uses the trained kilonova models during any form of EM analysis. When running any analysis that requires the use of the trained grid of models you will need to add the `--local-only` flag to the analysis command. For example, + +.. code:: + lightcurve-analysis \ + --model LANLTP2 \ + --svd-path svdmodels/ \ + --filters ztfg,ztfi,ztfr \ + --ztf-sampling \ + --ztf-uncertainties \ + --ztf-ToO 180 \ + --local-only \ + --interpolation-type tensorflow \ + --outdir outdir/TP2_ztf \ + --label TP2_ztf \ + --prior priors/LANL2022.prior \ + --tmin 0. \ + --tmax 14 \ + --dt 0.1 \ + --error-budget 1 \ + --nlive 1024 \ + + Matplotlib fonts ^^^^^^^^^^^^^^^^