Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenykurbatov committed May 13, 2024
1 parent 454c966 commit 4197e86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gaiaunlimited/selectionfunctions/subsample.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ def finalize(self, pp, ci_lo=None, ci_hi=None):
if key == 'healpix':
continue
coords[key + '_'] = np.arange(val[0], val[1], val[2])
print("\n* finalize")
print("coords =", coords)
#print("\n* finalize")
#print("coords =", coords)

self.hds = []
#hplevel = self.hplevel_and_binning['healpix']
Expand Down Expand Up @@ -622,7 +622,8 @@ def query(self, coords, hplevel=-1, return_confidence=False, fill_nan=False, **k
ipix = xr.DataArray(np.atleast_1d(ipix))

d = {}
for k in self.factors:
factors = set(self.hds[hplevel]['logitp'].dims) - set({'ipix'})
for k in factors:
if k not in kwargs:
raise ValueError(f"{k} values are missing.")
d[k] = xr.DataArray(np.atleast_1d(kwargs[k]))
Expand Down

0 comments on commit 4197e86

Please sign in to comment.