{"id":24738416,"url":"https://github.com/astro-informatics/stringgen","last_synced_at":"2025-03-22T18:19:13.416Z","repository":{"id":180417427,"uuid":"526208348","full_name":"astro-informatics/stringgen","owner":"astro-informatics","description":"Scattering based cosmic string emulation","archived":false,"fork":false,"pushed_at":"2023-10-10T13:27:51.000Z","size":43732,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-27T22:42:49.766Z","etag":null,"topics":["cosmic-strings","cosmology","emulation","scattering-transform","statistics","wavelet-transform"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/astro-informatics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-18T12:45:48.000Z","updated_at":"2023-10-10T12:55:57.000Z","dependencies_parsed_at":"2023-10-10T14:57:12.705Z","dependency_job_id":null,"html_url":"https://github.com/astro-informatics/stringgen","commit_stats":null,"previous_names":["astro-informatics/stringgen"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astro-informatics%2Fstringgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astro-informatics%2Fstringgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astro-informatics%2Fstringgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astro-informatics%2Fstringgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astro-informatics","download_url":"https://codeload.github.com/astro-informatics/stringgen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244999555,"owners_count":20544904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cosmic-strings","cosmology","emulation","scattering-transform","statistics","wavelet-transform"],"created_at":"2025-01-27T22:37:12.012Z","updated_at":"2025-03-22T18:19:13.382Z","avatar_url":"https://github.com/astro-informatics.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![image](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![image](http://img.shields.io/badge/arXiv-2307.04798-orange.svg?style=flat)](https://arxiv.org/abs/2307.04798)\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-)\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e \n[![image](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n# Scattering based cosmic string emulation\n\n`stringgen` is a tool for creating emulations of cosmic string maps with statistics similar to those of a single (or small ensemble) of reference simulations. It uses wavelet phase harmonics to calculate a compressed representation of these reference simulations, which may then be used to synthesize new realisations with accurate statistical properties, e.g. 2 and 3 point correlations, skewness, kurtosis, and Minkowski functionals.\n\n## Install from source :computer:\nOne may install the code from source by cloning and installing manually:\n\n```\ngit clone https://github.com/astro-informatics/stringgen.git\ncd stringgen\nbash build_stringgen.sh\n```\n\n## Usage :rocket:\n\nTo generate your own cosmic string maps `stringgen` is as simple follows:\n\n``` python\nfrom stringgen import CosmicStringEmulator\n\n# Configure the emulator\nemulator = CosmicStringEmulator(\n        emulation_shape=(1024, 1024),   # Shape of image\n        J=9,                        # Number of wavelet scales\n        L=9                         # Number of directions\n    )\n\n# Load latent data-bank\nfeatures = emulator.get_features()\n\n# Generate n_emulation=1 synthetic cosmic string maps\nemulation = emulator.emulate(features, n_emulations=1)\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji\nkey](https://allcontributors.org/docs/en/emoji-key)):\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://cosmomatt.github.io\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/32554533?v=4?s=100\" width=\"100px;\" alt=\"Matt Price\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMatt Price\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/astro-informatics/stringgen/commits?author=CosmoMatt\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/astro-informatics/stringgen/pulls?q=is%3Apr+reviewed-by%3ACosmoMatt\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e \u003ca href=\"#ideas-CosmoMatt\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/MatthijsMars\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/32309817?v=4?s=100\" width=\"100px;\" alt=\"Matthijs Mars\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMatthijs Mars\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/astro-informatics/stringgen/commits?author=MatthijsMars\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/astro-informatics/stringgen/pulls?q=is%3Apr+reviewed-by%3AMatthijsMars\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e \u003ca href=\"#ideas-MatthijsMars\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/auggiemarignier\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/42379892?v=4?s=100\" width=\"100px;\" alt=\"Auggie Marignier\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAuggie Marignier\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/astro-informatics/stringgen/commits?author=auggiemarignier\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/alessiospuriomancini\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/16155457?v=4?s=100\" width=\"100px;\" alt=\"Alessio Spurio Mancini\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAlessio Spurio Mancini\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/astro-informatics/stringgen/commits?author=alessiospuriomancini\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://www.jasonmcewen.org\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/3181701?v=4?s=100\" width=\"100px;\" alt=\"Jason McEwen\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJason McEwen\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/astro-informatics/stringgen/commits?author=jasonmcewen\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/astro-informatics/stringgen/pulls?q=is%3Apr+reviewed-by%3Ajasonmcewen\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e \u003ca href=\"#ideas-jasonmcewen\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://matthewdocherty.org\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/53608638?v=4?s=100\" width=\"100px;\" alt=\"Matthew Docherty\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMatthew Docherty\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/astro-informatics/stringgen/commits?author=mmdocherty\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n## Attribution :books: \nShould this code be used in any way, we kindly request that the following article is\nreferenced. A BibTeX entry for this reference may look like:\n\n``` \n@article{price:stringgen, \n   author      = \"Matthew A. Price, Matthijs Mars, Matthew M. Docherty, Alessio Spurio Mancini, Augustin Marignier, Jason. D. McEwen\",\n   title       = \"Fast emulation of anisotropies induced in the cosmic microwave background by cosmic strings\",\n   year        = \"2023\",\n   journal     = \"The Open Journal of Astrophysics,\n   doi         = \"10.21105/astro.2307.04798\",\n   eprint      = \"arXiv:2307.04798\"        \n}\n```\n\n## License :memo:\n\nWe provide this code under an MIT open-source licence with the hope that\nit will be of use to a wider community.\n\nCopyright 2023 Matthijs Mars, Matthew Price, Jason McEwen and contributors.\n\n`stringgen` is free software made available under the MIT License. For\ndetails see the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastro-informatics%2Fstringgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastro-informatics%2Fstringgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastro-informatics%2Fstringgen/lists"}