-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Union3 and refactor new SN code (#353)
* add Union3 and refactor new SN code * changelog * cleanup * fix case * whitespace * fix --upgrade install msg * fix pantheonplusshoes (#354) * tidy * pantheonplusshoes test --------- Co-authored-by: Arnaud de Mattia <[email protected]>
- Loading branch information
Showing
17 changed files
with
148 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@article{Rubin:2023ovl, | ||
author = "Rubin, David and others", | ||
title = "{Union Through UNITY: Cosmology with 2,000 SNe Using a Unified Bayesian Framework}", | ||
eprint = "2311.12098", | ||
archivePrefix = "arXiv", | ||
primaryClass = "astro-ph.CO", | ||
month = "11", | ||
year = "2023" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from .pantheonplus import PantheonPlus | ||
|
||
|
||
class Union3(PantheonPlus): | ||
""" | ||
Likelihood for the Union3 & UNITY1.5 type Ia supernovae sample. | ||
Reference | ||
--------- | ||
https://arxiv.org/pdf/2311.12098.pdf | ||
""" | ||
|
||
def configure(self): | ||
self.pre_vars = 0. # diagonal component | ||
|
||
def _read_data_file(self, data_file): | ||
file_cols = ['zcmb', 'mb'] | ||
self.cols = ['zcmb', 'mag'] | ||
self._read_cols(data_file, file_cols) | ||
self.zhel = self.zcmb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Settings for the Union3 SN Ia analysis. | ||
|
||
# .dataset file with settings | ||
dataset_file: Union3/full_long.dataset | ||
# Overriding of .dataset parameters | ||
dataset_params: | ||
# field: value | ||
# Aliases for automatic covariance matrix | ||
aliases: [ Union3 ] | ||
# Use absolute magnitude | ||
use_abs_mag: False | ||
# Speed in evaluations/second | ||
speed: 100 |
Oops, something went wrong.