Skip to content

Commit

Permalink
domain.compress: clear rotation if 0 in original domain
Browse files Browse the repository at this point in the history
  • Loading branch information
jornbr committed Jan 9, 2025
1 parent ccd11f8 commit 81fced9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fabmos/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ def compress(
source = getattr(full_domain, n)
if source is not None:
getattr(domain, n)[1, 1::2] = source[1::2, 1::2][mask_hz]
else:
setattr(domain, n, None)
for n in extra_fields:
source = getattr(full_domain, n)
setattr(domain, n, source[Ellipsis, np.newaxis, mask_hz])
Expand Down

0 comments on commit 81fced9

Please sign in to comment.