Skip to content

Commit

Permalink
Ignore Absender and Empfänger and all paths that are no json paths (#210
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hf-aschloegl authored Jan 4, 2023
1 parent 8f00955 commit 6a0987d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/maus/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,11 @@ async def transform_value_pool(value_pool: DataElementValuePool):
value_pool.replace_value_pool(replacement)

for value_pool in deep_ahb.get_all_value_pools():
replacement_tasks.append(transform_value_pool(value_pool))
# ignore Absender and Empfänger and all paths that are no json paths
if (
value_pool.discriminator.startswith("$")
and "Absender" not in value_pool.discriminator
and "Empfänger" not in value_pool.discriminator
):
replacement_tasks.append(transform_value_pool(value_pool))
await asyncio.gather(*replacement_tasks)

0 comments on commit 6a0987d

Please sign in to comment.