Skip to content

Commit

Permalink
Merge pull request #52 from LSSTDESC/ceci2
Browse files Browse the repository at this point in the history
Update for ceci version 2
  • Loading branch information
sschmidt23 authored Jul 31, 2024
2 parents 9d0f2dc + 9483841 commit 2dadd3f
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 = [
"desc-bpz",
"pz-rail-base",
"pz-rail-base>=1.0.3",
"qp-prob[full]",
]

Expand Down
8 changes: 4 additions & 4 deletions src/rail/estimation/algos/bpz_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ class BPZliteInformer(CatInformer):
init_km=Param(float, 0.1, msg="initial guess for km in training"),
type_file=Param(str, "", msg="name of file with the broad type fits for the training data"))

def __init__(self, args, comm=None):
def __init__(self, args, **kwargs):
"""Init function, init config stuff
"""
CatInformer.__init__(self, args, comm=comm)
super().__init__(args, **kwargs)
self.fo_arr = None
self.kt_arr = None
self.typmask = None
Expand Down Expand Up @@ -289,10 +289,10 @@ class BPZliteEstimator(CatEstimator):
msg="a minimum floor for the magnitude errors to prevent a "
"large chi^2 for very very bright objects"))

def __init__(self, args, comm=None):
def __init__(self, args, **kwargs):
"""Constructor, build the CatEstimator, then do BPZ specific setup
"""
CatEstimator.__init__(self, args, comm=comm)
super().__init__(args, **kwargs)

datapath = self.config["data_path"]
if datapath is None or datapath == "None":
Expand Down

0 comments on commit 2dadd3f

Please sign in to comment.