Skip to content

Commit

Permalink
Merge pull request #350 from nuclear-multimessenger-astronomy/bking-a…
Browse files Browse the repository at this point in the history
…stro-patch-1

This PR adds a section for installation without direct internet access.
  • Loading branch information
mcoughlin authored Apr 5, 2024
2 parents ac91f8c + f997a78 commit 99d7555
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit 99d7555

Please sign in to comment.