<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>software — CosmoPhys</title>
    <link>https://cosmophys.writeas.com/tag:software</link>
    <description>Primarily About Cosmology and Astrophysics</description>
    <pubDate>Tue, 24 Nov 2026 14:26:55 +0000</pubDate>
    <item>
      <title>Colossus: A Python Toolkit for Cosmology, Large-Scale Structure, and Dark Matter Halos</title>
      <link>https://cosmophys.writeas.com/colossus-a-python-toolkit-for-cosmology?pk_campaign=rss-feed</link>
      <description>Colossus1 is a recently available open-source, pure-python (nothing to compile) calculations toolkit developed by computational astrophysicist Benedikt Diemer during his PhD thesis work at University of Chicago.2&#xA;&#xA;There are 3 separate python modules for cosmology, LSS, and DM Halos. You can choose to work with any of 20 built-in cosmology models based on results from Planck18 (with or w/o BAO), Planck15, Planck13, WMAP, etc. You can also create your own cosmology model by specifying values for a minimum of 6 parameters.&#xA;&#xA;A paper on it is available at https://arxiv.org/abs/1712.04512. The code is available at this BitBucket repository. You can clone the repo, or download a zip file, or you can install it using pip. Documentation with many examples  in html format is available here and the docs on the 3 modules are also available as interactive, live-code Jupyter notebooks here. The html tutorials doc files are just exports from the Jupyter notebooks.</description>
      <content:encoded><![CDATA[<p><a href="https://bitbucket.org/bdiemer/colossus" rel="nofollow ugc">Colossus</a><sup>1</sup> is a recently available open-source, pure-python (nothing to compile) calculations toolkit developed by computational astrophysicist <a href="http://www.benediktdiemer.com/research/" rel="nofollow ugc">Benedikt Diemer</a> during his PhD thesis work at University of Chicago.<sup>2</sup></p>

<p>There are 3 separate python modules for cosmology, <a href="https://en.wikipedia.org/wiki/Observable_universe#Large-scale_structure" rel="nofollow ugc">LSS</a>, and <a href="https://en.wikipedia.org/wiki/Dark_matter_halo" rel="nofollow ugc">DM Halos</a>. You can choose to work with any of 20 built-in cosmology models based on results from Planck18 (with or w/o BAO), Planck15, Planck13, WMAP, etc. You can also create your own cosmology model by specifying values for a minimum of 6 parameters.</p>

<p>A paper on it is available at <a href="https://arxiv.org/abs/1712.04512" rel="nofollow ugc">https://arxiv.org/abs/1712.04512</a>. The code is available at this <a href="https://bitbucket.org/bdiemer/colossus" rel="nofollow ugc">BitBucket repository</a>. You can clone the repo, or download a zip file, or you can install it using <a href="https://pypi.org/project/colossus/" rel="nofollow ugc">pip</a>. Documentation with many examples  in html format is available <a href="https://bdiemer.bitbucket.io/colossus/index.html" rel="nofollow ugc">here</a> and the docs on the 3 modules are also available as interactive, live-code <a href="https://jupyter.org/" rel="nofollow ugc">Jupyter</a> notebooks <a href="https://bitbucket.org/bdiemer/colossus/src/c764da3a5692cab924511c98dcf211f279684053/tutorials/?at=default" rel="nofollow ugc">here</a>. The <a href="https://bdiemer.bitbucket.io/colossus/tutorials.html" rel="nofollow ugc">html tutorials doc files</a> are just exports from the Jupyter notebooks.</p>

<p>Diemer has used it on at least two of his recent papers:
<a href="https://arxiv.org/abs/1809.07326" rel="nofollow ugc">An accurate physical model for halo concentrations [1809.07326]</a>
<a href="https://arxiv.org/abs/1806.02341" rel="nofollow ugc">Modeling the atomic-to-molecular transition in cosmological simulations of galaxy formation [1806.02341]</a></p>

<p>Diemer expects future development work to continue on the code and invites bug reports, documentation feedback, feature requests, and collaborators (see the Future Development section at the end of the <a href="https://arxiv.org/abs/1712.04512" rel="nofollow ugc">1712.04512</a> paper).</p>

<p>An entry on it has been added to the <a href="https://ascl.net/1501.016" rel="nofollow ugc">Astrophysics Source Code Library</a>. Regarding other tools, one site I saw that has a large software availability listing is <a href="https://lambda.gsfc.nasa.gov/toolbox/" rel="nofollow ugc">Nasa&#39;s cosmology tools</a> webpage. There&#39;s also a wikipedia page on <a href="https://en.wikipedia.org/wiki/List_of_cosmological_computation_software" rel="nofollow ugc">cosmological computational software</a> and the <a href="https://astrobites.org/guides/guide-to-astrophysical-software/" rel="nofollow ugc">astrobites guide to astrophysical software</a>. At a CosmoTools18 school event, 11 tools were covered and videos of the lectures are available <a href="https://indico.cern.ch/event/688110/timetable/?view=standard" rel="nofollow ugc">here</a>.</p>

<p>I installed Colossus on both an Ubuntu and a Windows 10 machine and it ran perfectly with no glitches. I typically use <a href="https://www.spyder-ide.org/" rel="nofollow ugc">Spyder3</a> to create and run the code and <a href="https://github.com/jupyterlab/jupyterlab" rel="nofollow ugc">JupyterLab</a> for the notebooks. With numpy and matplotlib, it&#39;s easy to create plots.</p>

<p>There&#39;s also many good cosmology calculators online, e.g., ones at <a href="http://cosmocalc.icrar.org/" rel="nofollow ugc">ICRAR</a>, <a href="http://www.icosmos.co.uk/index.html" rel="nofollow ugc">iCosmos</a>, and <a href="http://www.astro.ucla.edu/~wright/CosmoCalc.html" rel="nofollow ugc">Ned Wright&#39;s</a>.</p>

<p><a href="https://www.reddit.com/r/cosmology/comments/9msvt4/colossus_a_python_toolkit_for_cosmology/" rel="nofollow ugc">Reddit thread</a> on this paper.
___</p>

<p>Footnotes:
<sup>1</sup> Colossus is an acronym for <strong>CO</strong>smology, ha<strong>LO</strong>, and large-<strong>S</strong>cale <strong>S</strong>tr<strong>U</strong>cture tool<strong>S</strong>
<sup>2</sup> <a href="https://astro.uchicago.edu/events/phd-thesis-defense_2015.php#id105" rel="nofollow ugc">Diemer&#39;s PhD thesis summary; On the (non-)universality of halo density profiles</a></p>

<p>Tags: <a href="https://cosmophys.writeas.com/tag:cosmology" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">cosmology</span></a> <a href="https://cosmophys.writeas.com/tag:software" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">software</span></a></p>
]]></content:encoded>
      <guid>https://cosmophys.writeas.com/colossus-a-python-toolkit-for-cosmology</guid>
      <pubDate>Fri, 08 Mar 2019 02:21:37 +0000</pubDate>
    </item>
  </channel>
</rss>