Skip to content

Commit

Permalink
depend on codex-africanus master
Browse files Browse the repository at this point in the history
  • Loading branch information
landmanbester committed Apr 15, 2024
1 parent d083703 commit 5ddf08b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
7 changes: 0 additions & 7 deletions pfb/workers/spotless.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,6 @@ def _spotless(ddsi=None, **kw):
rms_comps = np.std(np.sum(psiHoutvar, axis=0),
axis=(-1,-2))[:, None, None] # preserve axes

# This is attempt at getting the primal-dual to converge
# more homogeneously when bands have very different wsums
# sfactor is used to scale the grad21 function below
sfactor = np.zeros((nband, 1, 1))
sfactor[fsel] = wsum/wsums[fsel, None, None] # missing subbands
sfactor /= np.mean(sfactor[fsel])

# TODO - load from dds if present
if dual is None:
dual = np.zeros((nband, nbasis, Nymax, Nxmax), dtype=dirty.dtype)
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
"stimela >= 2.0rc14",
"streamjoy",
"tbb",
"jax[cpu]"
"jax[cpu]",
"codex-africanus[complete]"
"@git+https://github.com/ratt-ru/codex-africanus.git"
"@master"
]


Expand Down

0 comments on commit 5ddf08b

Please sign in to comment.