Skip to content

Commit

Permalink
Scarlet note LinAlg (#495)
Browse files Browse the repository at this point in the history
* note on LinAlg error for Scarlet

* issue

* typo
  • Loading branch information
ismael-mendoza authored Apr 26, 2024
1 parent 8a0a780 commit 8939751
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions btk/deblend.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,13 @@ def __init__(
of the argument also see the Scarlet API at:
https://pmelchior.github.io/scarlet/api/scarlet.initialization.html.
Note that as of commit 45187fd, Scarlet raises a `LinAlg` error if two sources are on
the same pixel, which is allowed by the majority of currently implemented sampling
functions in BTK. To get around this, our Deblender implementation automatically
catches this exception and outputs an array of zeroes for the deblended images of the
particular blend that caused this exception. See this issue for details:
https://github.com/pmelchior/scarlet/issues/282#issuecomment-2074886534
Args:
max_n_sources: See parent class.
thresh: Multiple of the backround RMS used as a flux cutoff for morphology
Expand Down

0 comments on commit 8939751

Please sign in to comment.