Skip to content

Commit

Permalink
Merge pull request #53 from LSSTDESC/ceci2
Browse files Browse the repository at this point in the history
Update for ceci version 2
  • Loading branch information
hangqianjun authored Jul 29, 2024
2 parents 3f512c3 + 9769526 commit 55ce8ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dynamic = ["version"]

dependencies = [
"lephare",
"pz-rail-base",
"pz-rail-base>=1.0.3",
"qp-prob[full]",
]

Expand Down
8 changes: 4 additions & 4 deletions src/rail/estimation/algos/lephare.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ class LephareInformer(CatInformer):
),
)

def __init__(self, args, comm=None):
def __init__(self, args, **kwargs):
"""Init function, init config stuff (COPIED from rail_bpz)"""
CatInformer.__init__(self, args, comm=comm)
super().__init__(args, **kwargs)
self.lephare_config = self.config["lephare_config"]
# We need to ensure the requested redshift grid is propagated
self.zmin=self.config["zmin"]
Expand Down Expand Up @@ -204,8 +204,8 @@ class LephareEstimator(CatEstimator):
),
)

def __init__(self, args, comm=None):
CatEstimator.__init__(self, args, comm=comm)
def __init__(self, args, **kwargs):
super().__init__(args, **kwargs)
CatEstimator.open_model(self, **self.config)
self.lephare_config = self.model["lephare_config"]
Z_STEP=self.model["lephare_config"]["Z_STEP"]
Expand Down

0 comments on commit 55ce8ce

Please sign in to comment.