Skip to content

Commit

Permalink
Fixed Conditional on merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
javihern98 committed Jan 16, 2025
1 parent b11b600 commit 65c46f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vtlengine/Operators/Conditional.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ def evaluate(

for i, condition in enumerate(conditions):
value = thenOps[i].value if isinstance(thenOps[i], Scalar) else thenOps[i].data
result.data = np.where(
condition.data,
value,
result.data, # type: ignore[call-overload]
result.data = np.where( # type: ignore[call-overload]
condition.data.notna(),
np.where(condition.data, value, result.data), # type: ignore[call-overload]
result.data,
)

condition_mask_else = ~np.any([condition.data for condition in conditions], axis=0)
Expand Down

0 comments on commit 65c46f4

Please sign in to comment.