Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
fzimmermann89 committed Jan 3, 2025
2 parents caf7eb0 + 79e4e5d commit e790db9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/mrpro/data/CheckDataMixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,10 @@ def _parse_string_to_shape_specification(dim_str: str) -> tuple[tuple[_DimType,
dims.append(_anonymous_variadic_dim)
continue

broadcastable = '#' in elem
elem = elem.replace('#', '')
variadic = '*' in elem
elem = elem.replace('*', '')
anonymous = '_' in elem
elem = elem.replace('_', '')
prefix, elem = elem[: len(elem) - len(elem.lstrip('#*_'))], elem.lstrip('#*_')
broadcastable = '#' in prefix
variadic = '*' in prefix
anonymous = '_' in prefix
elem = elem.split('=')[-1]
fixed = len(elem) != 0 and not elem.isidentifier()

Expand Down

0 comments on commit e790db9

Please sign in to comment.