echo21


Nameecho21 JSON
Version 2.0.1 PyPI version JSON
download
home_pageNone
SummaryExploring the Cosmos with Hydrogen Observation
upload_time2025-08-05 12:46:23
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT License Copyright (c) 2025 Shikhar Mittal Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords 21-cm cosmology global signal
VCS
bugtrack_url
requirements numpy scipy colossus mpi4py pybaselines requests tqdm
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Basics
======

Overview
--------

:Name: Exploring Cosmos with Hydrogen Observation
:Author: `Shikhar Mittal <https://sites.google.com/view/shikharmittal/home>`_
:Paper: `Mittal et al (2025) <https://arxiv.org/abs/2503.11762>`_
:Documentation: `echo21.readthedocs.io <https://echo21.readthedocs.io/en/latest/index.html>`_

Why do you need this code?
--------------------------

Use this code to generate the global 21-cm signal(s) for a given set of astrophysical and cosmological parameters.

Read more about it in the paper `Mittal et al (2025) <https://arxiv.org/abs/2503.11762>`_.

Installation and requirements
-----------------------------

This package can be installed as

.. code:: bash

   pip install echo21

We recommend working on a Python version > 3.8. Packages required are 

- `numpy <https://pypi.org/project/numpy/>`_ (recommended version 2.1.3)
- `scipy <https://pypi.org/project/scipy/>`_ (recommended version 1.14.1)
- `mpi4py <https://pypi.org/project/mpi4py/>`_ (recommended version 4.0.1)
- `tqdm <https://pypi.org/project/tqdm/>`_ (recommended version 4.67.1)
- `colossus <https://pypi.org/project/colossus/>`_ (recommended version 1.3.6)
- `pybaselines <https://pypi.org/project/pybaselines/>`_ (recommended version 1.1.0)

Quick start
-----------

The following code more or less captures the main functionalities of this package.

.. code:: python

   from echo21 import echopipeline

   pipe = echopipeline.pipeline()
   pipe.glob_sig()

Save the above code as (say) ``my_echo_script.py`` and run it as

.. code:: bash

    python my_echo_script.py

Running the above will generate an output folder with the name `output_<YYYYMMDD-hhmmss>` which contains several files. To learn how to set the astrophysical or cosmological parameters, halo mass function, star formation model, redshifts at which to evaluate the global signal, and structure of the output files see the documentation. To learn about the physics of this package see our `paper <https://arxiv.org/abs/2503.11762>`_. 

Once you have an understanding of the structure of output files, you can write your own scripts to create figures. To help you get started, see the jupyter notebook `make_figures.ipynb` in the example folder.

Documentation
-------------
For more details on the working of the package and understanding the output files refer to the 
`documentation <https://echo21.readthedocs.io/en/latest/index.html>`_.

License and citation
--------------------
The software is free to use on the MIT open-source license. If you use the software then please consider citing `Mittal et al (2025) <https://arxiv.org/abs/2503.11762>`_.

Acknowledgement
---------------
I thank Prakhar Bansal for help with development of the IDM model. I also thank Girish Kulkarni, Peter Sims, and Vikram Rentala for helpful comments and feedback during the development of this code.

Contact
-------

In case of any confusion or suggestions for improvement please do not hesitate to contact me.
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "echo21",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "21-cm, cosmology, global signal",
    "author": null,
    "author_email": "Shikhar Mittal <shikhar.mittal4@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/4c/f8/216814927d93292329f3fca92f1b24a47953130f4ec7f4eeebc5f682173e/echo21-2.0.1.tar.gz",
    "platform": null,
    "description": "Basics\n======\n\nOverview\n--------\n\n:Name: Exploring Cosmos with Hydrogen Observation\n:Author: `Shikhar Mittal <https://sites.google.com/view/shikharmittal/home>`_\n:Paper: `Mittal et al (2025) <https://arxiv.org/abs/2503.11762>`_\n:Documentation: `echo21.readthedocs.io <https://echo21.readthedocs.io/en/latest/index.html>`_\n\nWhy do you need this code?\n--------------------------\n\nUse this code to generate the global 21-cm signal(s) for a given set of astrophysical and cosmological parameters.\n\nRead more about it in the paper `Mittal et al (2025) <https://arxiv.org/abs/2503.11762>`_.\n\nInstallation and requirements\n-----------------------------\n\nThis package can be installed as\n\n.. code:: bash\n\n   pip install echo21\n\nWe recommend working on a Python version > 3.8. Packages required are \n\n- `numpy <https://pypi.org/project/numpy/>`_ (recommended version 2.1.3)\n- `scipy <https://pypi.org/project/scipy/>`_ (recommended version 1.14.1)\n- `mpi4py <https://pypi.org/project/mpi4py/>`_ (recommended version 4.0.1)\n- `tqdm <https://pypi.org/project/tqdm/>`_ (recommended version 4.67.1)\n- `colossus <https://pypi.org/project/colossus/>`_ (recommended version 1.3.6)\n- `pybaselines <https://pypi.org/project/pybaselines/>`_ (recommended version 1.1.0)\n\nQuick start\n-----------\n\nThe following code more or less captures the main functionalities of this package.\n\n.. code:: python\n\n   from echo21 import echopipeline\n\n   pipe = echopipeline.pipeline()\n   pipe.glob_sig()\n\nSave the above code as (say) ``my_echo_script.py`` and run it as\n\n.. code:: bash\n\n    python my_echo_script.py\n\nRunning the above will generate an output folder with the name `output_<YYYYMMDD-hhmmss>` which contains several files. To learn how to set the astrophysical or cosmological parameters, halo mass function, star formation model, redshifts at which to evaluate the global signal, and structure of the output files see the documentation. To learn about the physics of this package see our `paper <https://arxiv.org/abs/2503.11762>`_. \n\nOnce you have an understanding of the structure of output files, you can write your own scripts to create figures. To help you get started, see the jupyter notebook `make_figures.ipynb` in the example folder.\n\nDocumentation\n-------------\nFor more details on the working of the package and understanding the output files refer to the \n`documentation <https://echo21.readthedocs.io/en/latest/index.html>`_.\n\nLicense and citation\n--------------------\nThe software is free to use on the MIT open-source license. If you use the software then please consider citing `Mittal et al (2025) <https://arxiv.org/abs/2503.11762>`_.\n\nAcknowledgement\n---------------\nI thank Prakhar Bansal for help with development of the IDM model. I also thank Girish Kulkarni, Peter Sims, and Vikram Rentala for helpful comments and feedback during the development of this code.\n\nContact\n-------\n\nIn case of any confusion or suggestions for improvement please do not hesitate to contact me.",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) 2025 Shikhar Mittal\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.",
    "summary": "Exploring the Cosmos with Hydrogen Observation",
    "version": "2.0.1",
    "project_urls": {
        "Repository": "https://github.com/shikharmittal04/echo21.git"
    },
    "split_keywords": [
        "21-cm",
        " cosmology",
        " global signal"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "89baa66cb28a49135d38f8864da7d1a59e3f261d62b2b8123de3aab4c22b48e2",
                "md5": "a362be91f94e31c03fd7503bd0db15d7",
                "sha256": "da958c1b47c5bd80324b3117b756cdbbdeb65e5243f0333dfcdefd079a289636"
            },
            "downloads": -1,
            "filename": "echo21-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a362be91f94e31c03fd7503bd0db15d7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 27711,
            "upload_time": "2025-08-05T12:46:05",
            "upload_time_iso_8601": "2025-08-05T12:46:05.368656Z",
            "url": "https://files.pythonhosted.org/packages/89/ba/a66cb28a49135d38f8864da7d1a59e3f261d62b2b8123de3aab4c22b48e2/echo21-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4cf8216814927d93292329f3fca92f1b24a47953130f4ec7f4eeebc5f682173e",
                "md5": "bad887fe1995616d4742e4c467feea88",
                "sha256": "a88d593cd60934cb66b7ccc4bba9a536bf643b09f13b4e389ef2b8a0ac2db842"
            },
            "downloads": -1,
            "filename": "echo21-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "bad887fe1995616d4742e4c467feea88",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 19783887,
            "upload_time": "2025-08-05T12:46:23",
            "upload_time_iso_8601": "2025-08-05T12:46:23.305462Z",
            "url": "https://files.pythonhosted.org/packages/4c/f8/216814927d93292329f3fca92f1b24a47953130f4ec7f4eeebc5f682173e/echo21-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-05 12:46:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "shikharmittal04",
    "github_project": "echo21",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "scipy",
            "specs": []
        },
        {
            "name": "colossus",
            "specs": []
        },
        {
            "name": "mpi4py",
            "specs": []
        },
        {
            "name": "pybaselines",
            "specs": []
        },
        {
            "name": "requests",
            "specs": []
        },
        {
            "name": "tqdm",
            "specs": []
        }
    ],
    "lcname": "echo21"
}
        
Elapsed time: 1.80517s