Skip to content

Commit

Permalink
global vars for higher order estim
Browse files Browse the repository at this point in the history
  • Loading branch information
thorek1 committed Nov 5, 2024
1 parent 234d485 commit 2198efb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/test_2nd_order_estimation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ while !isfinite(LPmax) && i < 1000
global LPmax = new_LP
global XMAX = deepcopy(replica.state)
end
i += 1
global i += 1
end

# define a specific initialization for this model
Expand Down Expand Up @@ -110,10 +110,10 @@ while !isfinite(LPmax) && i < 1000
Pigeons.sample_iid!(FS2000_lp, replica, pt.shared)
new_LP = FS2000_lp(replica.state)
if new_LP > LPmax
LPmax = new_LP
XMAX = deepcopy(replica.state)
global LPmax = new_LP
global XMAX = deepcopy(replica.state)
end
i += 1
global i += 1
end

# define a specific initialization for this model
Expand Down
2 changes: 1 addition & 1 deletion test/test_3rd_order_estimation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ while !isfinite(LPmax) && i < 1000
global LPmax = new_LP
global XMAX = deepcopy(replica.state)
end
i += 1
global i += 1
end

# define a specific initialization for this model
Expand Down

0 comments on commit 2198efb

Please sign in to comment.