Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Dec 29, 2023
1 parent 9505e0d commit 8cc7e66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "JUDI"
uuid = "f3b833dc-6b2e-5b9c-b940-873ed6319979"
authors = ["Philipp Witte, Mathias Louboutin"]
version = "3.3.8"
version = "3.3.9"

[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand Down
4 changes: 2 additions & 2 deletions src/pysource/propagators.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ def gradient(model, residual, rcv_coords, u, return_op=False, space_order=8, fw=
"""
# Setting adjoint wavefieldgradient
v = wavefield(model, space_order, fw=not fw)
if as_tuple(u)[0].indices[0].is_Conditional:
try:
t_sub = as_tuple(u)[0].indices[0]._factor
if isinstance(t_sub, Constant):
t_sub = t_sub.data
else:
except AttributeError:
t_sub = 1

# Setup gradient wrt m
Expand Down

0 comments on commit 8cc7e66

Please sign in to comment.