Skip to content

Commit

Permalink
fix d6 model initialization
Browse files Browse the repository at this point in the history
Data members of `super` class were not passed. Also remove useless parameters not used by any of the
base classes.
  • Loading branch information
xgarrido committed Mar 11, 2020
1 parent aaaa3ee commit 240b570
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions pysm/data/presets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ unit_Q = "uK_RJ"
unit_U = "uK_RJ"
map_mbb_index = "pysm_2/dust_beta.fits"
map_mbb_temperature = "pysm_2/dust_temp.fits"
unit_mbb_temperature = "K"
freq_ref_I = "545 GHz"
freq_ref_P = "353 GHz"
[s0]
Expand Down
14 changes: 10 additions & 4 deletions pysm/models/dust.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,11 @@ def __init__(
map_mbb_index=None,
map_mbb_temperature=None,
nside=None,
pixel_indices=None,
mpi_comm=None,
unit_I=None,
unit_Q=None,
unit_U=None,
unit_mbb_temperature=None,
map_dist=None,
correlation_length=None,
):
""" See parent class for other documentation.
Expand All @@ -176,8 +179,11 @@ def __init__(
map_mbb_index,
map_mbb_temperature,
nside,
pixel_indices=pixel_indices,
mpi_comm=mpi_comm,
unit_I=unit_I,
unit_Q=unit_Q,
unit_U=unit_U,
unit_mbb_temperature=unit_mbb_temperature,
map_dist=map_dist
)
self.correlation_length = correlation_length

Expand Down

0 comments on commit 240b570

Please # to comment.