Frequently Asked Questions

  1. I have run gen_freq() for some choice of nu. But now want to regenerate the Tb_nu_map data for a different choice of nu. Do I need to rerun ref_freq()?

    No. ref_freq() is not tied to nu because nu is given to function gen_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 only gen_freq() for a new choice of nu.

  2. I want to try different figures available in visual(). Do I need to rerun ref_freq() and gen_freq()?

    No. If you have already run ref_freq() and gen_freq() and are happy with the specifications of the model, then you can directly jump to the visual() function.

  3. I have already run ref_freq() and gen_freq() functions but want to try out couple2D() for different beam directivities. Do I need to rerun ref_freq() and gen_freq()?

    No. Once again couple2D() is not tied to ref_freq() or gen_freq(). Once the data is generated by these functions, couple2D() will do its job by loading that data.

  4. When I run visual(), I get the following error

    RuntimeError: Failed to process string with tex because latex could not be found

    How 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.

  5. I am getting the following error

    ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects

    when 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.

  6. Will this package run on windows?

    No, because it uses healpy and since healpy is 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.