gwcosmo 2.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. gwcosmo-2.1.0/.gitattributes +0 -0
  2. gwcosmo-2.1.0/.gitignore +17 -0
  3. gwcosmo-2.1.0/.gitlab-ci.yml +107 -0
  4. gwcosmo-2.1.0/LICENSE.md +365 -0
  5. gwcosmo-2.1.0/MANIFEST.in +2 -0
  6. gwcosmo-2.1.0/PKG-INFO +103 -0
  7. gwcosmo-2.1.0/README.md +73 -0
  8. gwcosmo-2.1.0/bin/gwcosmo_bright_siren_posterior +449 -0
  9. gwcosmo-2.1.0/bin/gwcosmo_compute_redshift_prior +311 -0
  10. gwcosmo-2.1.0/bin/gwcosmo_create_injections +193 -0
  11. gwcosmo-2.1.0/bin/gwcosmo_create_injections_dag +124 -0
  12. gwcosmo-2.1.0/bin/gwcosmo_dark_siren_posterior +319 -0
  13. gwcosmo-2.1.0/conda/recipe/meta.yaml +62 -0
  14. gwcosmo-2.1.0/docs/.gitignore +8 -0
  15. gwcosmo-2.1.0/docs/Makefile +20 -0
  16. gwcosmo-2.1.0/docs/bright-siren-example.md +4 -0
  17. gwcosmo-2.1.0/docs/conf.py +182 -0
  18. gwcosmo-2.1.0/docs/cosmological-inference.md +60 -0
  19. gwcosmo-2.1.0/docs/dark-siren-example.md +110 -0
  20. gwcosmo-2.1.0/docs/data.md +16 -0
  21. gwcosmo-2.1.0/docs/index.rst +79 -0
  22. gwcosmo-2.1.0/docs/injections.md +154 -0
  23. gwcosmo-2.1.0/docs/installation.md +75 -0
  24. gwcosmo-2.1.0/docs/los-prior.md +5 -0
  25. gwcosmo-2.1.0/docs/source/gwcosmo.likelihood.rst +45 -0
  26. gwcosmo-2.1.0/docs/source/gwcosmo.plotting.rst +21 -0
  27. gwcosmo-2.1.0/docs/source/gwcosmo.prior.rst +45 -0
  28. gwcosmo-2.1.0/docs/source/gwcosmo.rst +40 -0
  29. gwcosmo-2.1.0/docs/source/gwcosmo.utilities.rst +109 -0
  30. gwcosmo-2.1.0/docs/source/modules.rst +7 -0
  31. gwcosmo-2.1.0/gwcosmo/__init__.py +15 -0
  32. gwcosmo-2.1.0/gwcosmo/create_injections.py +1445 -0
  33. gwcosmo-2.1.0/gwcosmo/data/A+_strain.txt +3000 -0
  34. gwcosmo-2.1.0/gwcosmo/data/H1_O1_strain.txt +47921 -0
  35. gwcosmo-2.1.0/gwcosmo/data/H1_O2_strain.txt +39922 -0
  36. gwcosmo-2.1.0/gwcosmo/data/H1_O3_strain.txt +32769 -0
  37. gwcosmo-2.1.0/gwcosmo/data/H1_O4high_strain.txt +2736 -0
  38. gwcosmo-2.1.0/gwcosmo/data/H1_O4low_strain.txt +2736 -0
  39. gwcosmo-2.1.0/gwcosmo/data/H1_O5_strain.txt +3000 -0
  40. gwcosmo-2.1.0/gwcosmo/data/K1_O4high_strain.txt +1000 -0
  41. gwcosmo-2.1.0/gwcosmo/data/K1_O4low_strain.txt +1000 -0
  42. gwcosmo-2.1.0/gwcosmo/data/K1_O5_strain.txt +1000 -0
  43. gwcosmo-2.1.0/gwcosmo/data/L1_O1_strain.txt +47921 -0
  44. gwcosmo-2.1.0/gwcosmo/data/L1_O2_strain.txt +39922 -0
  45. gwcosmo-2.1.0/gwcosmo/data/L1_O3_strain.txt +32769 -0
  46. gwcosmo-2.1.0/gwcosmo/data/L1_O4high_strain.txt +2736 -0
  47. gwcosmo-2.1.0/gwcosmo/data/L1_O4low_strain.txt +2736 -0
  48. gwcosmo-2.1.0/gwcosmo/data/L1_O5_strain.txt +3000 -0
  49. gwcosmo-2.1.0/gwcosmo/data/PSD_L1_H1_mid.txt +3000 -0
  50. gwcosmo-2.1.0/gwcosmo/data/README +26 -0
  51. gwcosmo-2.1.0/gwcosmo/data/V1_O2_strain.txt +9981 -0
  52. gwcosmo-2.1.0/gwcosmo/data/V1_O3_strain.txt +19981 -0
  53. gwcosmo-2.1.0/gwcosmo/data/V1_O4high_strain.txt +3000 -0
  54. gwcosmo-2.1.0/gwcosmo/data/V1_O4low_strain.txt +3000 -0
  55. gwcosmo-2.1.0/gwcosmo/data/V1_O5_strain.txt +3000 -0
  56. gwcosmo-2.1.0/gwcosmo/data/parameter_dictionary.json +122 -0
  57. gwcosmo-2.1.0/gwcosmo/injections.py +222 -0
  58. gwcosmo-2.1.0/gwcosmo/likelihood/__init__.py +4 -0
  59. gwcosmo-2.1.0/gwcosmo/likelihood/bright_siren_likelihood.py +286 -0
  60. gwcosmo-2.1.0/gwcosmo/likelihood/dark_siren_likelihood.py +204 -0
  61. gwcosmo-2.1.0/gwcosmo/likelihood/posterior_samples.py +345 -0
  62. gwcosmo-2.1.0/gwcosmo/likelihood/skymap.py +203 -0
  63. gwcosmo-2.1.0/gwcosmo/maps/create_mth_map.py +66 -0
  64. gwcosmo-2.1.0/gwcosmo/maps/create_norm_map.py +161 -0
  65. gwcosmo-2.1.0/gwcosmo/plotting/__init__.py +1 -0
  66. gwcosmo-2.1.0/gwcosmo/plotting/plot.py +395 -0
  67. gwcosmo-2.1.0/gwcosmo/prior/LOS_redshift_prior.py +275 -0
  68. gwcosmo-2.1.0/gwcosmo/prior/__init__.py +1 -0
  69. gwcosmo-2.1.0/gwcosmo/prior/catalog.py +376 -0
  70. gwcosmo-2.1.0/gwcosmo/prior/custom_math_priors.py +817 -0
  71. gwcosmo-2.1.0/gwcosmo/prior/priors.py +575 -0
  72. gwcosmo-2.1.0/gwcosmo/utilities/__init__.py +6 -0
  73. gwcosmo-2.1.0/gwcosmo/utilities/arguments.py +244 -0
  74. gwcosmo-2.1.0/gwcosmo/utilities/cache.py +9 -0
  75. gwcosmo-2.1.0/gwcosmo/utilities/calc_kcor.py +417 -0
  76. gwcosmo-2.1.0/gwcosmo/utilities/check_boundary.py +74 -0
  77. gwcosmo-2.1.0/gwcosmo/utilities/cosmology.py +384 -0
  78. gwcosmo-2.1.0/gwcosmo/utilities/gracedb.py +31 -0
  79. gwcosmo-2.1.0/gwcosmo/utilities/host_galaxy_merger_relations.py +168 -0
  80. gwcosmo-2.1.0/gwcosmo/utilities/luminosity_function.py +172 -0
  81. gwcosmo-2.1.0/gwcosmo/utilities/posterior_utilities.py +47 -0
  82. gwcosmo-2.1.0/gwcosmo/utilities/redshift_utilities.py +14 -0
  83. gwcosmo-2.1.0/gwcosmo/utilities/schechter_params.py +70 -0
  84. gwcosmo-2.1.0/gwcosmo/utilities/zprior_utilities.py +125 -0
  85. gwcosmo-2.1.0/gwcosmo.egg-info/PKG-INFO +103 -0
  86. gwcosmo-2.1.0/gwcosmo.egg-info/SOURCES.txt +95 -0
  87. gwcosmo-2.1.0/gwcosmo.egg-info/dependency_links.txt +1 -0
  88. gwcosmo-2.1.0/gwcosmo.egg-info/requires.txt +16 -0
  89. gwcosmo-2.1.0/gwcosmo.egg-info/top_level.txt +1 -0
  90. gwcosmo-2.1.0/pyproject.toml +33 -0
  91. gwcosmo-2.1.0/requirements.txt +16 -0
  92. gwcosmo-2.1.0/scripts_galaxy_catalogs/GLADE+/README.md +1 -0
  93. gwcosmo-2.1.0/scripts_galaxy_catalogs/GLADE+/create_glade+.py +162 -0
  94. gwcosmo-2.1.0/scripts_galaxy_catalogs/GLADE+/select_columnts.sh +11 -0
  95. gwcosmo-2.1.0/scripts_galaxy_catalogs/GLADE2.4/README.md +1 -0
  96. gwcosmo-2.1.0/scripts_galaxy_catalogs/GLADE2.4/make_glade_catalog.py +209 -0
  97. gwcosmo-2.1.0/setup.cfg +4 -0
File without changes
@@ -0,0 +1,17 @@
1
+ *.ipynb
2
+ *~
3
+ *.egg-info
4
+ *.pyc
5
+ *.DS_Store
6
+ __pycache__
7
+ .eggs
8
+ .cache
9
+ .coverage*
10
+ .pytest_cache
11
+ build
12
+ dist
13
+ htmlcov
14
+ .ipynb_checkpoints
15
+ docs/source
16
+ docs/_build
17
+ public
@@ -0,0 +1,107 @@
1
+ include:
2
+ # https://computing.docs.ligo.org/gitlab-ci-templates/
3
+ - project: computing/gitlab-ci-templates
4
+ file:
5
+ # https://computing.docs.ligo.org/gitlab-ci-templates/conda/
6
+ - conda.yml
7
+ # https://computing.docs.ligo.org/gitlab-ci-templates/python/
8
+ - python.yml
9
+
10
+ stages:
11
+ - test
12
+ - deploy
13
+
14
+ .test:
15
+ stage: test
16
+ extends:
17
+ # https://computing.docs.ligo.org/gitlab-ci-templates/conda/#.conda:base
18
+ - .conda:base
19
+ # https://computing.docs.ligo.org/gitlab-ci-templates/python/#.python:pytest
20
+ - .python:unittest
21
+ image: igwn/base:conda
22
+ variables:
23
+ # what Python package to track for coverage
24
+ COVERAGE_TARGET: "gwcosmo"
25
+ # set Python interpreter to conda env
26
+ PYTHON: "${CONDA_ENVS_PATH}/tests/bin/python"
27
+ before_script:
28
+ # configure conda
29
+ - !reference [".conda:base", before_script]
30
+ - "PYTHON_VERSION=${CI_JOB_NAME##*:}"
31
+ - mamba create -n tests
32
+ python=${PYTHON_VERSION}
33
+ matplotlib-base
34
+ lalsuite
35
+ - conda activate tests
36
+ # configure pip and pytest
37
+ - !reference [".python:unittest", before_script]
38
+ # script commands are set in .python:pytest template
39
+
40
+ test:3.9:
41
+ extends: .test
42
+
43
+ test:3.10:
44
+ extends: .test
45
+
46
+ test:3.11:
47
+ extends: .test
48
+
49
+ test:3.12:
50
+ allow_failure: True
51
+ extends: .test
52
+
53
+ .gwcosmo:
54
+ stage: test
55
+ extends:
56
+ # https://computing.docs.ligo.org/gitlab-ci-templates/conda/#.conda:base
57
+ - .conda:base
58
+ # https://computing.docs.ligo.org/gitlab-ci-templates/python/#.python:pytest
59
+ - .python:unittest
60
+ image: igwn/base:conda
61
+ variables:
62
+ # what Python package to track for coverage
63
+ COVERAGE_TARGET: "gwcosmo"
64
+ # set Python interpreter to conda env
65
+ PYTHON: "${CONDA_ENVS_PATH}/tests/bin/python"
66
+ before_script:
67
+ # configure conda
68
+ - !reference [".conda:base", before_script]
69
+ - "PYTHON_VERSION=${CI_JOB_NAME##*:}"
70
+ - mamba create -n tests
71
+ python=${PYTHON_VERSION}
72
+ matplotlib-base
73
+ lalsuite
74
+ - mamba install gwcosmo
75
+ - python -m pip install --no-deps .
76
+
77
+ script:
78
+ - cd tests #&& bash asimov-test-script.sh
79
+
80
+
81
+
82
+ conda-build:
83
+ variables:
84
+ GIT_SUBMODULE_STRATEGY: recursive
85
+ extends:
86
+ - .conda:build
87
+ script:
88
+ - export CONDA_RECIPE_DIR="${CI_PROJECT_DIR}/conda/recipe"
89
+ - !reference [".conda:build", script]
90
+
91
+
92
+
93
+ pages:
94
+ image: python:3.9
95
+ stage: deploy
96
+ script:
97
+ - pip install .
98
+ - pip install -U sphinx
99
+ - pip install myst-parser
100
+ - pip install sphinx-rtd-theme
101
+ - sphinx-build -b html docs/ public
102
+ artifacts:
103
+ paths:
104
+ - public
105
+ only:
106
+ - master
107
+
@@ -0,0 +1,365 @@
1
+ # License
2
+
3
+ The [GWCosmo Logo](etc/logo.png) needs to be designed.
4
+
5
+ ### GNU GENERAL PUBLIC LICENSE
6
+
7
+ Version 2, June 1991
8
+
9
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
10
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
11
+
12
+ Everyone is permitted to copy and distribute verbatim copies
13
+ of this license document, but changing it is not allowed.
14
+
15
+ ### Preamble
16
+
17
+ The licenses for most software are designed to take away your freedom
18
+ to share and change it. By contrast, the GNU General Public License is
19
+ intended to guarantee your freedom to share and change free
20
+ software--to make sure the software is free for all its users. This
21
+ General Public License applies to most of the Free Software
22
+ Foundation's software and to any other program whose authors commit to
23
+ using it. (Some other Free Software Foundation software is covered by
24
+ the GNU Lesser General Public License instead.) You can apply it to
25
+ your programs, too.
26
+
27
+ When we speak of free software, we are referring to freedom, not
28
+ price. Our General Public Licenses are designed to make sure that you
29
+ have the freedom to distribute copies of free software (and charge for
30
+ this service if you wish), that you receive source code or can get it
31
+ if you want it, that you can change the software or use pieces of it
32
+ in new free programs; and that you know you can do these things.
33
+
34
+ To protect your rights, we need to make restrictions that forbid
35
+ anyone to deny you these rights or to ask you to surrender the rights.
36
+ These restrictions translate to certain responsibilities for you if
37
+ you distribute copies of the software, or if you modify it.
38
+
39
+ For example, if you distribute copies of such a program, whether
40
+ gratis or for a fee, you must give the recipients all the rights that
41
+ you have. You must make sure that they, too, receive or can get the
42
+ source code. And you must show them these terms so they know their
43
+ rights.
44
+
45
+ We protect your rights with two steps: (1) copyright the software, and
46
+ (2) offer you this license which gives you legal permission to copy,
47
+ distribute and/or modify the software.
48
+
49
+ Also, for each author's protection and ours, we want to make certain
50
+ that everyone understands that there is no warranty for this free
51
+ software. If the software is modified by someone else and passed on,
52
+ we want its recipients to know that what they have is not the
53
+ original, so that any problems introduced by others will not reflect
54
+ on the original authors' reputations.
55
+
56
+ Finally, any free program is threatened constantly by software
57
+ patents. We wish to avoid the danger that redistributors of a free
58
+ program will individually obtain patent licenses, in effect making the
59
+ program proprietary. To prevent this, we have made it clear that any
60
+ patent must be licensed for everyone's free use or not licensed at
61
+ all.
62
+
63
+ The precise terms and conditions for copying, distribution and
64
+ modification follow.
65
+
66
+ ### TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
67
+
68
+ **0.** This License applies to any program or other work which
69
+ contains a notice placed by the copyright holder saying it may be
70
+ distributed under the terms of this General Public License. The
71
+ "Program", below, refers to any such program or work, and a "work
72
+ based on the Program" means either the Program or any derivative work
73
+ under copyright law: that is to say, a work containing the Program or
74
+ a portion of it, either verbatim or with modifications and/or
75
+ translated into another language. (Hereinafter, translation is
76
+ included without limitation in the term "modification".) Each licensee
77
+ is addressed as "you".
78
+
79
+ Activities other than copying, distribution and modification are not
80
+ covered by this License; they are outside its scope. The act of
81
+ running the Program is not restricted, and the output from the Program
82
+ is covered only if its contents constitute a work based on the Program
83
+ (independent of having been made by running the Program). Whether that
84
+ is true depends on what the Program does.
85
+
86
+ **1.** You may copy and distribute verbatim copies of the Program's
87
+ source code as you receive it, in any medium, provided that you
88
+ conspicuously and appropriately publish on each copy an appropriate
89
+ copyright notice and disclaimer of warranty; keep intact all the
90
+ notices that refer to this License and to the absence of any warranty;
91
+ and give any other recipients of the Program a copy of this License
92
+ along with the Program.
93
+
94
+ You may charge a fee for the physical act of transferring a copy, and
95
+ you may at your option offer warranty protection in exchange for a
96
+ fee.
97
+
98
+ **2.** You may modify your copy or copies of the Program or any
99
+ portion of it, thus forming a work based on the Program, and copy and
100
+ distribute such modifications or work under the terms of Section 1
101
+ above, provided that you also meet all of these conditions:
102
+
103
+
104
+ **a)** You must cause the modified files to carry prominent notices
105
+ stating that you changed the files and the date of any change.
106
+
107
+
108
+ **b)** You must cause any work that you distribute or publish, that in
109
+ whole or in part contains or is derived from the Program or any part
110
+ thereof, to be licensed as a whole at no charge to all third parties
111
+ under the terms of this License.
112
+
113
+
114
+ **c)** If the modified program normally reads commands interactively
115
+ when run, you must cause it, when started running for such interactive
116
+ use in the most ordinary way, to print or display an announcement
117
+ including an appropriate copyright notice and a notice that there is
118
+ no warranty (or else, saying that you provide a warranty) and that
119
+ users may redistribute the program under these conditions, and telling
120
+ the user how to view a copy of this License. (Exception: if the
121
+ Program itself is interactive but does not normally print such an
122
+ announcement, your work based on the Program is not required to print
123
+ an announcement.)
124
+
125
+ These requirements apply to the modified work as a whole. If
126
+ identifiable sections of that work are not derived from the Program,
127
+ and can be reasonably considered independent and separate works in
128
+ themselves, then this License, and its terms, do not apply to those
129
+ sections when you distribute them as separate works. But when you
130
+ distribute the same sections as part of a whole which is a work based
131
+ on the Program, the distribution of the whole must be on the terms of
132
+ this License, whose permissions for other licensees extend to the
133
+ entire whole, and thus to each and every part regardless of who wrote
134
+ it.
135
+
136
+ Thus, it is not the intent of this section to claim rights or contest
137
+ your rights to work written entirely by you; rather, the intent is to
138
+ exercise the right to control the distribution of derivative or
139
+ collective works based on the Program.
140
+
141
+ In addition, mere aggregation of another work not based on the Program
142
+ with the Program (or with a work based on the Program) on a volume of
143
+ a storage or distribution medium does not bring the other work under
144
+ the scope of this License.
145
+
146
+ **3.** You may copy and distribute the Program (or a work based on it,
147
+ under Section 2) in object code or executable form under the terms of
148
+ Sections 1 and 2 above provided that you also do one of the following:
149
+
150
+
151
+ **a)** Accompany it with the complete corresponding machine-readable
152
+ source code, which must be distributed under the terms of Sections 1
153
+ and 2 above on a medium customarily used for software interchange; or,
154
+
155
+
156
+ **b)** Accompany it with a written offer, valid for at least three
157
+ years, to give any third party, for a charge no more than your cost of
158
+ physically performing source distribution, a complete machine-readable
159
+ copy of the corresponding source code, to be distributed under the
160
+ terms of Sections 1 and 2 above on a medium customarily used for
161
+ software interchange; or,
162
+
163
+
164
+ **c)** Accompany it with the information you received as to the offer
165
+ to distribute corresponding source code. (This alternative is allowed
166
+ only for noncommercial distribution and only if you received the
167
+ program in object code or executable form with such an offer, in
168
+ accord with Subsection b above.)
169
+
170
+ The source code for a work means the preferred form of the work for
171
+ making modifications to it. For an executable work, complete source
172
+ code means all the source code for all modules it contains, plus any
173
+ associated interface definition files, plus the scripts used to
174
+ control compilation and installation of the executable. However, as a
175
+ special exception, the source code distributed need not include
176
+ anything that is normally distributed (in either source or binary
177
+ form) with the major components (compiler, kernel, and so on) of the
178
+ operating system on which the executable runs, unless that component
179
+ itself accompanies the executable.
180
+
181
+ If distribution of executable or object code is made by offering
182
+ access to copy from a designated place, then offering equivalent
183
+ access to copy the source code from the same place counts as
184
+ distribution of the source code, even though third parties are not
185
+ compelled to copy the source along with the object code.
186
+
187
+ **4.** You may not copy, modify, sublicense, or distribute the Program
188
+ except as expressly provided under this License. Any attempt otherwise
189
+ to copy, modify, sublicense or distribute the Program is void, and
190
+ will automatically terminate your rights under this License. However,
191
+ parties who have received copies, or rights, from you under this
192
+ License will not have their licenses terminated so long as such
193
+ parties remain in full compliance.
194
+
195
+ **5.** You are not required to accept this License, since you have not
196
+ signed it. However, nothing else grants you permission to modify or
197
+ distribute the Program or its derivative works. These actions are
198
+ prohibited by law if you do not accept this License. Therefore, by
199
+ modifying or distributing the Program (or any work based on the
200
+ Program), you indicate your acceptance of this License to do so, and
201
+ all its terms and conditions for copying, distributing or modifying
202
+ the Program or works based on it.
203
+
204
+ **6.** Each time you redistribute the Program (or any work based on
205
+ the Program), the recipient automatically receives a license from the
206
+ original licensor to copy, distribute or modify the Program subject to
207
+ these terms and conditions. You may not impose any further
208
+ restrictions on the recipients' exercise of the rights granted herein.
209
+ You are not responsible for enforcing compliance by third parties to
210
+ this License.
211
+
212
+ **7.** If, as a consequence of a court judgment or allegation of
213
+ patent infringement or for any other reason (not limited to patent
214
+ issues), conditions are imposed on you (whether by court order,
215
+ agreement or otherwise) that contradict the conditions of this
216
+ License, they do not excuse you from the conditions of this License.
217
+ If you cannot distribute so as to satisfy simultaneously your
218
+ obligations under this License and any other pertinent obligations,
219
+ then as a consequence you may not distribute the Program at all. For
220
+ example, if a patent license would not permit royalty-free
221
+ redistribution of the Program by all those who receive copies directly
222
+ or indirectly through you, then the only way you could satisfy both it
223
+ and this License would be to refrain entirely from distribution of the
224
+ Program.
225
+
226
+ If any portion of this section is held invalid or unenforceable under
227
+ any particular circumstance, the balance of the section is intended to
228
+ apply and the section as a whole is intended to apply in other
229
+ circumstances.
230
+
231
+ It is not the purpose of this section to induce you to infringe any
232
+ patents or other property right claims or to contest validity of any
233
+ such claims; this section has the sole purpose of protecting the
234
+ integrity of the free software distribution system, which is
235
+ implemented by public license practices. Many people have made
236
+ generous contributions to the wide range of software distributed
237
+ through that system in reliance on consistent application of that
238
+ system; it is up to the author/donor to decide if he or she is willing
239
+ to distribute software through any other system and a licensee cannot
240
+ impose that choice.
241
+
242
+ This section is intended to make thoroughly clear what is believed to
243
+ be a consequence of the rest of this License.
244
+
245
+ **8.** If the distribution and/or use of the Program is restricted in
246
+ certain countries either by patents or by copyrighted interfaces, the
247
+ original copyright holder who places the Program under this License
248
+ may add an explicit geographical distribution limitation excluding
249
+ those countries, so that distribution is permitted only in or among
250
+ countries not thus excluded. In such case, this License incorporates
251
+ the limitation as if written in the body of this License.
252
+
253
+ **9.** The Free Software Foundation may publish revised and/or new
254
+ versions of the General Public License from time to time. Such new
255
+ versions will be similar in spirit to the present version, but may
256
+ differ in detail to address new problems or concerns.
257
+
258
+ Each version is given a distinguishing version number. If the Program
259
+ specifies a version number of this License which applies to it and
260
+ "any later version", you have the option of following the terms and
261
+ conditions either of that version or of any later version published by
262
+ the Free Software Foundation. If the Program does not specify a
263
+ version number of this License, you may choose any version ever
264
+ published by the Free Software Foundation.
265
+
266
+ **10.** If you wish to incorporate parts of the Program into other
267
+ free programs whose distribution conditions are different, write to
268
+ the author to ask for permission. For software which is copyrighted by
269
+ the Free Software Foundation, write to the Free Software Foundation;
270
+ we sometimes make exceptions for this. Our decision will be guided by
271
+ the two goals of preserving the free status of all derivatives of our
272
+ free software and of promoting the sharing and reuse of software
273
+ generally.
274
+
275
+ **NO WARRANTY**
276
+
277
+ **11.** BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
278
+ WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
279
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
280
+ OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY
281
+ KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
282
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
283
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
284
+ PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME
285
+ THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
286
+
287
+ **12.** IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
288
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
289
+ AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU
290
+ FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
291
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
292
+ PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
293
+ RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
294
+ FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF
295
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
296
+ DAMAGES.
297
+
298
+ ### END OF TERMS AND CONDITIONS
299
+
300
+ ### How to Apply These Terms to Your New Programs
301
+
302
+ If you develop a new program, and you want it to be of the greatest
303
+ possible use to the public, the best way to achieve this is to make it
304
+ free software which everyone can redistribute and change under these
305
+ terms.
306
+
307
+ To do so, attach the following notices to the program. It is safest to
308
+ attach them to the start of each source file to most effectively
309
+ convey the exclusion of warranty; and each file should have at least
310
+ the "copyright" line and a pointer to where the full notice is found.
311
+
312
+ one line to give the program's name and an idea of what it does.
313
+ Copyright (C) yyyy name of author
314
+
315
+ This program is free software; you can redistribute it and/or
316
+ modify it under the terms of the GNU General Public License
317
+ as published by the Free Software Foundation; either version 2
318
+ of the License, or (at your option) any later version.
319
+
320
+ This program is distributed in the hope that it will be useful,
321
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
322
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
323
+ GNU General Public License for more details.
324
+
325
+ You should have received a copy of the GNU General Public License
326
+ along with this program; if not, write to the Free Software
327
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
328
+
329
+ Also add information on how to contact you by electronic and paper
330
+ mail.
331
+
332
+ If the program is interactive, make it output a short notice like this
333
+ when it starts in an interactive mode:
334
+
335
+ Gnomovision version 69, Copyright (C) year name of author
336
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
337
+ type \`show w'. This is free software, and you are welcome
338
+ to redistribute it under certain conditions; type \`show c'
339
+ for details.
340
+
341
+ The hypothetical commands \`show w' and \`show c' should show the
342
+ appropriate parts of the General Public License. Of course, the
343
+ commands you use may be called something other than \`show w' and
344
+ \`show c'; they could even be mouse-clicks or menu items--whatever
345
+ suits your program.
346
+
347
+ You should also get your employer (if you work as a programmer) or
348
+ your school, if any, to sign a "copyright disclaimer" for the program,
349
+ if necessary. Here is a sample; alter the names:
350
+
351
+ Yoyodyne, Inc., hereby disclaims all copyright
352
+ interest in the program \`Gnomovision'
353
+ (which makes passes at compilers) written
354
+ by James Hacker.
355
+
356
+ signature of Ty Coon, 1 April 1989
357
+ Ty Coon, President of Vice
358
+
359
+ This General Public License does not permit incorporating your program
360
+ into proprietary programs. If your program is a subroutine library,
361
+ you may consider it more useful to permit linking proprietary
362
+ applications with the library. If this is what you want to do, use the
363
+ [GNU Lesser General Public
364
+ License](https://www.gnu.org/licenses/lgpl.html) instead of this
365
+ License.
@@ -0,0 +1,2 @@
1
+ graft docs
2
+ include *requirements.txt
gwcosmo-2.1.0/PKG-INFO ADDED
@@ -0,0 +1,103 @@
1
+ Metadata-Version: 2.1
2
+ Name: gwcosmo
3
+ Version: 2.1.0
4
+ Summary: A package to estimate cosmological parameters using gravitational-wave observations
5
+ Author-email: Rachel Gray <rachel.gray@ligo.org>
6
+ Project-URL: Homepage, https://git.ligo.org/lscsoft/gwcosmo
7
+ Project-URL: Documentation, https://lscsoft.docs.ligo.org/gwcosmo/
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: GNU General Public License (GPL)
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.8
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE.md
14
+ Requires-Dist: astropy
15
+ Requires-Dist: bilby
16
+ Requires-Dist: h5py
17
+ Requires-Dist: healpy
18
+ Requires-Dist: lalsuite
19
+ Requires-Dist: ligo-gracedb
20
+ Requires-Dist: ligo-segments
21
+ Requires-Dist: ligo.skymap<=1.0.7
22
+ Requires-Dist: lscsoft-glue
23
+ Requires-Dist: matplotlib>=2.0
24
+ Requires-Dist: numpy<=1.23.5,>=1.19
25
+ Requires-Dist: pandas
26
+ Requires-Dist: progressbar
27
+ Requires-Dist: scipy
28
+ Requires-Dist: seaborn
29
+ Requires-Dist: tqdm
30
+
31
+ # Welcome to gwcosmo
32
+
33
+ Gwcosmo: a package to estimate cosmological parameters using gravitational-wave observations.
34
+
35
+
36
+ ## Installation
37
+
38
+ The recommended method for installing gwcosmo is using pip. We recommend setting up a virtual environment first. Once you have done this and activated your virtual environment, simply run
39
+
40
+ ```
41
+ pip install gwcosmo
42
+ ```
43
+
44
+ Note that gwcosmo requires Python version 3.8 or higher.
45
+
46
+
47
+ ## Documentation
48
+
49
+ Gwcosmo's documentation is available at [https://lscsoft.docs.ligo.org/gwcosmo/](https://lscsoft.docs.ligo.org/gwcosmo/).
50
+
51
+
52
+ ## Citing gwcosmo
53
+
54
+ If you use gwcosmo in a scientific publication, please cite the following publications, and include the following statement in your manuscript: "This work makes use of gwcosmo which is available at https://git.ligo.org/lscsoft/gwcosmo".
55
+
56
+ ```bibtex
57
+ @ARTICLE{2023arXiv230802281G,
58
+ author = {{Gray}, Rachel and {Beirnaert}, Freija and {Karathanasis}, Christos and {Revenu}, Beno{\^\i}t and {Turski}, Cezary and {Chen}, Anson and {Baker}, Tessa and {Vallejo}, Sergio and {Enea Romano}, Antonio and {Ghosh}, Tathagata and {Ghosh}, Archisman and {Leyde}, Konstantin and {Mastrogiovanni}, Simone and {More}, Surhud},
59
+ title = "{Joint cosmological and gravitational-wave population inference using dark sirens and galaxy catalogues}",
60
+ journal = {arXiv e-prints},
61
+ keywords = {Astrophysics - Cosmology and Nongalactic Astrophysics},
62
+ year = 2023,
63
+ month = aug,
64
+ eid = {arXiv:2308.02281},
65
+ pages = {arXiv:2308.02281},
66
+ doi = {10.48550/arXiv.2308.02281},
67
+ archivePrefix = {arXiv},
68
+ eprint = {2308.02281},
69
+ primaryClass = {astro-ph.CO},
70
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2023arXiv230802281G},
71
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
72
+ }
73
+
74
+ @article{10.1093/mnras/stac366,
75
+ author = {Gray, R and Messenger, C and Veitch, J},
76
+ title = "{A pixelated approach to galaxy catalogue incompleteness: improving the dark siren measurement of the Hubble constant}",
77
+ journal = {Monthly Notices of the Royal Astronomical Society},
78
+ volume = {512},
79
+ number = {1},
80
+ pages = {1127-1140},
81
+ year = {2022},
82
+ month = {02},
83
+ issn = {0035-8711},
84
+ doi = {10.1093/mnras/stac366},
85
+ url = {https://doi.org/10.1093/mnras/stac366},
86
+ eprint = {https://academic.oup.com/mnras/article-pdf/512/1/1127/45303118/stac366.pdf}
87
+ }
88
+
89
+ @article{PhysRevD.101.122001,
90
+ title = {Cosmological inference using gravitational wave standard sirens: A mock data analysis},
91
+ author = {Gray, Rachel and Hernandez, Ignacio Maga\~na and Qi, Hong and Sur, Ankan and Brady, Patrick R. and Chen, Hsin-Yu and Farr, Will M. and Fishbach, Maya and Gair, Jonathan R. and Ghosh, Archisman and Holz, Daniel E. and Mastrogiovanni, Simone and Messenger, Christopher and Steer, Dani\`ele A. and Veitch, John},
92
+ journal = {Phys. Rev. D},
93
+ volume = {101},
94
+ issue = {12},
95
+ pages = {122001},
96
+ numpages = {22},
97
+ year = {2020},
98
+ month = {Jun},
99
+ publisher = {American Physical Society},
100
+ doi = {10.1103/PhysRevD.101.122001},
101
+ url = {https://link.aps.org/doi/10.1103/PhysRevD.101.122001}
102
+ }
103
+ ```
@@ -0,0 +1,73 @@
1
+ # Welcome to gwcosmo
2
+
3
+ Gwcosmo: a package to estimate cosmological parameters using gravitational-wave observations.
4
+
5
+
6
+ ## Installation
7
+
8
+ The recommended method for installing gwcosmo is using pip. We recommend setting up a virtual environment first. Once you have done this and activated your virtual environment, simply run
9
+
10
+ ```
11
+ pip install gwcosmo
12
+ ```
13
+
14
+ Note that gwcosmo requires Python version 3.8 or higher.
15
+
16
+
17
+ ## Documentation
18
+
19
+ Gwcosmo's documentation is available at [https://lscsoft.docs.ligo.org/gwcosmo/](https://lscsoft.docs.ligo.org/gwcosmo/).
20
+
21
+
22
+ ## Citing gwcosmo
23
+
24
+ If you use gwcosmo in a scientific publication, please cite the following publications, and include the following statement in your manuscript: "This work makes use of gwcosmo which is available at https://git.ligo.org/lscsoft/gwcosmo".
25
+
26
+ ```bibtex
27
+ @ARTICLE{2023arXiv230802281G,
28
+ author = {{Gray}, Rachel and {Beirnaert}, Freija and {Karathanasis}, Christos and {Revenu}, Beno{\^\i}t and {Turski}, Cezary and {Chen}, Anson and {Baker}, Tessa and {Vallejo}, Sergio and {Enea Romano}, Antonio and {Ghosh}, Tathagata and {Ghosh}, Archisman and {Leyde}, Konstantin and {Mastrogiovanni}, Simone and {More}, Surhud},
29
+ title = "{Joint cosmological and gravitational-wave population inference using dark sirens and galaxy catalogues}",
30
+ journal = {arXiv e-prints},
31
+ keywords = {Astrophysics - Cosmology and Nongalactic Astrophysics},
32
+ year = 2023,
33
+ month = aug,
34
+ eid = {arXiv:2308.02281},
35
+ pages = {arXiv:2308.02281},
36
+ doi = {10.48550/arXiv.2308.02281},
37
+ archivePrefix = {arXiv},
38
+ eprint = {2308.02281},
39
+ primaryClass = {astro-ph.CO},
40
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2023arXiv230802281G},
41
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
42
+ }
43
+
44
+ @article{10.1093/mnras/stac366,
45
+ author = {Gray, R and Messenger, C and Veitch, J},
46
+ title = "{A pixelated approach to galaxy catalogue incompleteness: improving the dark siren measurement of the Hubble constant}",
47
+ journal = {Monthly Notices of the Royal Astronomical Society},
48
+ volume = {512},
49
+ number = {1},
50
+ pages = {1127-1140},
51
+ year = {2022},
52
+ month = {02},
53
+ issn = {0035-8711},
54
+ doi = {10.1093/mnras/stac366},
55
+ url = {https://doi.org/10.1093/mnras/stac366},
56
+ eprint = {https://academic.oup.com/mnras/article-pdf/512/1/1127/45303118/stac366.pdf}
57
+ }
58
+
59
+ @article{PhysRevD.101.122001,
60
+ title = {Cosmological inference using gravitational wave standard sirens: A mock data analysis},
61
+ author = {Gray, Rachel and Hernandez, Ignacio Maga\~na and Qi, Hong and Sur, Ankan and Brady, Patrick R. and Chen, Hsin-Yu and Farr, Will M. and Fishbach, Maya and Gair, Jonathan R. and Ghosh, Archisman and Holz, Daniel E. and Mastrogiovanni, Simone and Messenger, Christopher and Steer, Dani\`ele A. and Veitch, John},
62
+ journal = {Phys. Rev. D},
63
+ volume = {101},
64
+ issue = {12},
65
+ pages = {122001},
66
+ numpages = {22},
67
+ year = {2020},
68
+ month = {Jun},
69
+ publisher = {American Physical Society},
70
+ doi = {10.1103/PhysRevD.101.122001},
71
+ url = {https://link.aps.org/doi/10.1103/PhysRevD.101.122001}
72
+ }
73
+ ```