Skip to content

Commit

Permalink
bug fix in params naming for surgeoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyewong committed May 23, 2022
1 parent c7f80dc commit 7d0f6a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ciamhelper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ function parse_ciam_params!(params, rgn_order, seg_order, surgeoption)
# by default the original data file is read in as p["surgeexposure"], so in
# that case no action needed. Otherwise...
if surgeoption == 1
p["surgeexposure"] = p["surgeexposure_DC-GTSR"]
params["surgeexposure"] = params["surgeexposure_dc-gtsr"]
elseif surgeoption == 2
p["surgeexposure"] = p["surgeexposure_GTSR"]
params["surgeexposure"] = params["surgeexposure_gtsr"]
elseif surgeoption != 0
error("The `surgeoption` argument must be 0, 1 or 2.")
end
Expand Down

0 comments on commit 7d0f6a8

Please sign in to comment.