Skip to content

Commit

Permalink
drop redundant set_up
Browse files Browse the repository at this point in the history
- already done in petric.construct_RDP
  • Loading branch information
casperdcl committed Aug 28, 2024
1 parent 0c9cd2c commit 447593b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion main_BSREM.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def __init__(self, data: Dataset, num_subsets: int = 7, update_objective_interva
initial_image=data.OSEM_image)
# WARNING: modifies prior strength with 1/num_subsets (as currently needed for BSREM implementations)
data.prior.set_penalisation_factor(data.prior.get_penalisation_factor() / len(obj_funs))
data.prior.set_up(data.OSEM_image)
for f in obj_funs: # add prior evenly to every objective function
f.set_prior(data.prior)

Expand Down
1 change: 0 additions & 1 deletion main_ISTA.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def __init__(self, data: Dataset, num_subsets: int = 7, step_size: float = 0.1,
initial_image=data.OSEM_image)
# WARNING: modifies prior strength with 1/num_subsets (as currently needed for ISTA implementations)
data.prior.set_penalisation_factor(data.prior.get_penalisation_factor() / len(obj_funs))
data.prior.set_up(data.OSEM_image)
for f in obj_funs: # add prior evenly to every objective function
f.set_prior(data.prior)

Expand Down

0 comments on commit 447593b

Please sign in to comment.