Test the environment

Check the kernel

In [ ]:
import sys, os
In [ ]:
sys.base_prefix
In [ ]:
if os.environ.get("NERSC_HOST") == "cori":
    assert sys.base_prefix == '/global/common/software/sobs/mbs', "You are not using the Simons Obs MBS kernel"

Check if the packages import correctly

In [ ]:
import mapsims
In [ ]:
noise = mapsims.SONoiseSimulator(nside=16)
In [ ]:
print(mapsims.__version__)
In [ ]:
import pixell
pixell.__version__
In [ ]:
from pixell import enmap
import numpy as np
In [ ]:
enmap.enmap(np.zeros((3,3)))
In [ ]:
import healpy as hp
In [ ]:
hp.anafast(np.ones(12))
In [ ]: