Skip to content

Commit

Permalink
Fix non-negativity constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
paskino committed Dec 5, 2023
1 parent 3bd0d21 commit 0a39716
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mantidimaging/core/reconstruct/cil_recon.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ def set_up_TGV_regularisation(
K = BlockOperator(K11, K12, K21, K22, K31, K32, shape=(3, 2))

if recon_params.non_negative:
G = IndicatorBox(lower=0)
G = BlockFunction(IndicatorBox(lower=0, upper=None), ZeroFunction())

else:
# Define Function G simply as zero
G = ZeroFunction()
Expand Down

0 comments on commit 0a39716

Please sign in to comment.