-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
info between objects and modules
and added tests for updates
4090d67
to
72d32ab
Compare
There was a problem hiding this 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.
hera_pspec/noise.py
Outdated
|
||
Parameters | ||
---------- | ||
Tsys : float, System temperature in Kelvin |
There was a problem hiding this comment.
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
hera_pspec/pspecdata.py
Outdated
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) |
There was a problem hiding this comment.
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. {}.
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.