Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to how cosmology is handled within hera_pspec #80

Merged
merged 11 commits into from
May 1, 2018

Conversation

nkern
Copy link
Member

@nkern nkern commented Apr 26, 2018

This updates how the passing of cosmology info is done between the various objects (i.e. all of them) in hera_pspec. This is done to be much clearer to the user, and be explicit about when and how cosmologies are adopted how they can be overwritten.

In particular, if a cosmology is adopted to create a UVPSpec object, if it is overwritten, then the power spectrum scalar is re-calculated and the power spectra are appropriately re-normalized.

@nkern nkern mentioned this pull request Apr 27, 2018
@nkern nkern requested a review from philbull April 27, 2018 02:24
@nkern nkern force-pushed the cosmo_handling_update branch from 4090d67 to 72d32ab Compare April 28, 2018 08:13
@coveralls
Copy link

coveralls commented Apr 28, 2018

Coverage Status

Coverage increased (+0.4%) to 92.362% when pulling 1b3b335 on cosmo_handling_update into 447b9e8 on master.

Copy link
Collaborator

@philbull philbull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a couple of minor comments.


Parameters
----------
Tsys : float, System temperature in Kelvin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scalar parameter isn't documented

if self.primary_beam is None:
pspec_units = "({})^2 Hz [beam normalization not specified]".format(self.dsets[0].vis_units)
norm_units = "Hz str [beam normalization not specified]".format(self.dsets[0].vis_units)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has no format placeholder, e.g. {}.

@nkern nkern merged commit 19db6ce into master May 1, 2018
@nkern nkern deleted the cosmo_handling_update branch May 1, 2018 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants