Skip to content

Commit

Permalink
fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Jun 27, 2024
1 parent 354bac2 commit 0048880
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ JUDI = "f3b833dc-6b2e-5b9c-b940-873ed6319979"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

[compat]
JUDI = "3.4.3"
JUDI = "3.4.4"

This comment has been minimized.

Copy link
@mloubout

mloubout Jun 27, 2024

Author Member
julia = "1"

[extras]
Expand Down
9 changes: 5 additions & 4 deletions src/surface_gather.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ function double_rtm_cig(model_full, q::judiVector, data::judiVector, offs, optio
rec_coords = setup_grid(data.geometry, model.n) # shifts rec coordinates by origin

# Src-rec offsets
scale = 5f3
off_r = abs.(data.geometry.xloc[1] .- q.geometry.xloc[1]) .+ scale
scale = 1f1
off_r = log.(abs.(data.geometry.xloc[1] .- q.geometry.xloc[1]) .+ scale)
inv_off(x) = exp.(x) .- scale

# mute
if mute
Expand All @@ -83,14 +84,14 @@ function double_rtm_cig(model_full, q::judiVector, data::judiVector, offs, optio

rtm, rtmo, illum = rlock_pycall(impl."double_rtm", Tuple{PyArray, PyArray, PyArray},
modelPy, qIn, src_coords, res, res_o, rec_coords,
ic=options.ic)
ic=options.IC)

rtm = remove_padding(rtm, modelPy.padsizes)
rtmo = remove_padding(rtmo, modelPy.padsizes)
illum = remove_padding(illum, modelPy.padsizes)

# offset map
h_map = offset_map(rtm, rtmo; scale=scale)
h_map = inv_off(offset_map(rtm, rtmo))

rtm = laplacian(rtm)
rtm[illum .> 0] ./= illum[illum .> 0]
Expand Down

1 comment on commit 0048880

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/109959

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.9 -m "<description of version>" 00488809bffaa462e03d8c9a3bad08b857edd6dc
git push origin v0.2.9

Please sign in to comment.