Skip to content

Commit

Permalink
Merge pull request #14207 from nstarman/cosmo-tests
Browse files Browse the repository at this point in the history
Cosmo tests
  • Loading branch information
nstarman committed Jan 17, 2023
2 parents 50c27ba + e676c8e commit b1e6ff8
Show file tree
Hide file tree
Showing 13 changed files with 1,831 additions and 1,528 deletions.
61 changes: 61 additions & 0 deletions astropy/cosmology/flrw/tests/data/cosmo_closed.ecsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# %ECSV 1.0
# ---
# datatype:
# - {name: redshift, unit: redshift, datatype: float64}
# - {name: dm, unit: Mpc, datatype: float64}
# - {name: da, unit: Mpc, datatype: float64}
# - {name: dl, unit: Mpc, datatype: float64}
# meta: !!omap
# - {source: icosmo (icosmo.org)}
# - {Om: 2}
# - {w: -1}
# - {h: 0.7}
# - {Ol: 0.1}
# - __serialized_columns__:
# da:
# __class__: astropy.units.quantity.Quantity
# unit: &id001 !astropy.units.Unit {unit: Mpc}
# value: !astropy.table.SerializedColumn {name: da}
# dl:
# __class__: astropy.units.quantity.Quantity
# unit: *id001
# value: !astropy.table.SerializedColumn {name: dl}
# dm:
# __class__: astropy.units.quantity.Quantity
# unit: *id001
# value: !astropy.table.SerializedColumn {name: dm}
# redshift:
# __class__: astropy.units.quantity.Quantity
# unit: !astropy.units.Unit {unit: redshift}
# value: !astropy.table.SerializedColumn {name: redshift}
# schema: astropy-2.0
redshift dm da dl
0.0 0.0 0.0 0.0
0.1625 601.8016 517.67879 699.59436
0.325 1057.9502 798.45297 1401.784
0.5 1438.2161 958.81076 2157.3242
0.6625 1718.6778 1033.7912 2857.3019
0.825 1948.24 1067.5288 3555.5381
1.0 2152.7954 1076.3977 4305.5908
1.1625 2312.3427 1069.2914 5000.441
1.325 2448.9755 1053.3228 5693.8681
1.5 2575.6795 1030.2718 6439.1988
1.6625 2677.9671 1005.8092 7130.0873
1.825 2768.1157 979.86398 7819.927
2.0 2853.9222 951.30739 8561.7665
2.1625 2924.8116 924.84161 9249.7167
2.325 2988.5333 898.80701 9936.8732
2.5 3050.3065 871.51614 10676.073
2.6625 3102.1909 847.01459 11361.774
2.825 3149.5043 823.39982 12046.854
3.0 3195.9966 798.99915 12783.986
3.1625 3235.5334 777.30533 13467.908
3.325 3271.9832 756.5279 14151.327
3.5 3308.1758 735.15017 14886.791
3.6625 3339.2521 716.19347 15569.263
3.825 3368.1489 698.06195 16251.319
4.0 3397.0803 679.41605 16985.401
4.1625 3422.1142 662.87926 17666.664
4.325 3445.5542 647.05243 18347.576
4.5 3469.1805 630.76008 19080.493
4.6625 3489.7534 616.29199 19760.729
61 changes: 61 additions & 0 deletions astropy/cosmology/flrw/tests/data/cosmo_flat.ecsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# %ECSV 1.0
# ---
# datatype:
# - {name: redshift, unit: redshift, datatype: float64}
# - {name: dm, unit: Mpc, datatype: float64}
# - {name: da, unit: Mpc, datatype: float64}
# - {name: dl, unit: Mpc, datatype: float64}
# meta: !!omap
# - {source: icosmo (icosmo.org)}
# - {Om: 0.3}
# - {w: -1}
# - {h: 0.7}
# - {Ol: 0.7}
# - __serialized_columns__:
# da:
# __class__: astropy.units.quantity.Quantity
# unit: &id001 !astropy.units.Unit {unit: Mpc}
# value: !astropy.table.SerializedColumn {name: da}
# dl:
# __class__: astropy.units.quantity.Quantity
# unit: *id001
# value: !astropy.table.SerializedColumn {name: dl}
# dm:
# __class__: astropy.units.quantity.Quantity
# unit: *id001
# value: !astropy.table.SerializedColumn {name: dm}
# redshift:
# __class__: astropy.units.quantity.Quantity
# unit: !astropy.units.Unit {unit: redshift}
# value: !astropy.table.SerializedColumn {name: redshift}
# schema: astropy-2.0
redshift dm da dl
0.0 0.0 0.0 0.0
0.1625 669.77536 576.15085 778.61386
0.325 1285.5964 970.26143 1703.4152
0.5 1888.6254 1259.0836 2832.9381
0.6625 2395.5489 1440.9317 3982.6
0.825 2855.5732 1564.6976 5211.421
1.0 3303.8288 1651.9144 6607.6577
1.1625 3681.1867 1702.2829 7960.5663
1.325 4025.5229 1731.4077 9359.3408
1.5 4363.8558 1745.5423 10909.64
1.6625 4651.483 1747.0359 12384.573
1.825 4916.597 1740.3883 13889.387
2.0 5179.8621 1726.6207 15539.586
2.1625 5406.0204 1709.4136 17096.54
2.325 5616.5075 1689.1752 18674.888
2.5 5827.5418 1665.012 20396.396
2.6625 6010.4886 1641.089 22013.414
2.825 6182.1688 1616.2533 23646.796
3.0 6355.6855 1588.9214 25422.742
3.1625 6507.2491 1563.3031 27086.425
3.325 6650.452 1537.6768 28763.205
3.5 6796.1499 1510.2555 30582.674
3.6625 6924.2096 1485.0852 32284.127
3.825 7045.8876 1460.2876 33996.408
4.0 7170.3664 1434.0733 35851.832
4.1625 7280.3423 1410.2358 37584.767
4.325 7385.3277 1386.916 39326.87
4.5 7493.2222 1362.404 41212.722
4.6625 7588.9589 1340.2135 42972.48
61 changes: 61 additions & 0 deletions astropy/cosmology/flrw/tests/data/cosmo_open.ecsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# %ECSV 1.0
# ---
# datatype:
# - {name: redshift, unit: redshift, datatype: float64}
# - {name: dm, unit: Mpc, datatype: float64}
# - {name: da, unit: Mpc, datatype: float64}
# - {name: dl, unit: Mpc, datatype: float64}
# meta: !!omap
# - {source: icosmo (icosmo.org)}
# - {Om: 0.3}
# - {w: -1}
# - {h: 0.7}
# - {Ol: 0.1}
# - __serialized_columns__:
# da:
# __class__: astropy.units.quantity.Quantity
# unit: &id001 !astropy.units.Unit {unit: Mpc}
# value: !astropy.table.SerializedColumn {name: da}
# dl:
# __class__: astropy.units.quantity.Quantity
# unit: *id001
# value: !astropy.table.SerializedColumn {name: dl}
# dm:
# __class__: astropy.units.quantity.Quantity
# unit: *id001
# value: !astropy.table.SerializedColumn {name: dm}
# redshift:
# __class__: astropy.units.quantity.Quantity
# unit: !astropy.units.Unit {unit: redshift}
# value: !astropy.table.SerializedColumn {name: redshift}
# schema: astropy-2.0
redshift dm da dl
0.0 0.0 0.0 0.0
0.1625 643.08185 553.18868 747.58265
0.325 1200.9858 906.40441 1591.3062
0.5 1731.6262 1154.4175 2597.4393
0.6625 2174.3252 1307.8648 3614.8157
0.825 2578.7616 1413.0201 4706.2399
1.0 2979.346 1489.673 5958.692
1.1625 3324.2002 1537.2024 7188.5829
1.325 3646.8432 1568.5347 8478.9104
1.5 3972.8407 1589.1363 9932.1017
1.6625 4258.1131 1599.2913 11337.226
1.825 4528.5346 1603.0211 12793.11
2.0 4804.9314 1601.6438 14414.794
2.1625 5049.2007 1596.5852 15968.097
2.325 5282.6693 1588.7727 17564.875
2.5 5523.0914 1578.0261 19330.82
2.6625 5736.9813 1566.4113 21011.694
2.825 5942.5803 1553.6158 22730.37
3.0 6155.4289 1538.8572 24621.716
3.1625 6345.6997 1524.4924 26413.975
3.325 6529.3655 1509.6799 28239.506
3.5 6720.2676 1493.3928 30241.204
3.6625 6891.5474 1478.0799 32131.84
3.825 7057.4213 1462.678 34052.058
4.0 7230.3723 1446.0745 36151.862
4.1625 7385.9998 1430.7021 38130.224
4.325 7537.1112 1415.4199 40135.117
4.5 7695.0718 1399.104 42322.895
4.6625 7837.551 1384.115 44380.133

0 comments on commit b1e6ff8

Please sign in to comment.