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

Update for ceci version 2 #52

Merged
merged 8 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading