Frequently Asked Questions
I have run
gen_freq()for some choice ofnu. But now want to regenerate theTb_nu_mapdata for a different choice ofnu. Do I need to rerunref_freq()?No.
ref_freq()is not tied tonubecausenuis given to functiongen_freq(). Thus, if users want to use the same data for source distribution (n_ps.npy), flux density (Tb_o_individual.npy) and spectral index (beta.npy) assignments at reference frequency to generate spectrum and sky maps for a different frequency range, then run onlygen_freq()for a new choice ofnu.I want to try different figures available in
visual(). Do I need to rerunref_freq()andgen_freq()?No. If you have already run
ref_freq()andgen_freq()and are happy with the specifications of the model, then you can directly jump to thevisual()function.I have already run
ref_freq()andgen_freq()functions but want to try outcouple2D()for different beam directivities. Do I need to rerunref_freq()andgen_freq()?No. Once again
couple2D()is not tied toref_freq()orgen_freq(). Once the data is generated by these functions,couple2D()will do its job by loading that data.When I run
visual(), I get the following errorRuntimeError: Failed to process string with tex because latex could not be foundHow to rectify this?
Solution: This is probably because you do not have a proper LaTeX installation. Run the following commands on your terminal
sudo apt install texlive texlive-latex-extra texlive-fonts-recommended dvipng cm-super pip install latex
Solution borrowed from Stack Overflow -failed-to-process-string.
I am getting the following error
ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projectswhen I install
mpi4py.Solution: Run the following commands on your terminal
sudo apt update sudo apt-get install libopenmpi-dev
Solution borrowed from Stack Overflow -could-not-build-wheels.
Will this package run on windows?
No, because it uses
healpyand sincehealpyis not (yet) supported on windows, this package cannot be used on windows. However, there is still a workaround without having to dual boot your PC with ubuntu. You can use the Windows Subsystem for Linux (WSL). See the official ubuntu page and this page.