Skip to content

Commit

Permalink
Merge pull request #378 from ecmwf-ifs/nams-inline-elemental-functions
Browse files Browse the repository at this point in the history
Inline functions (including multi-line and non-elemental functions)
  • Loading branch information
reuterbal authored Oct 10, 2024
2 parents 0189d24 + 53cc3fa commit 8cd5702
Show file tree
Hide file tree
Showing 3 changed files with 470 additions and 41 deletions.
14 changes: 14 additions & 0 deletions loki/expression/symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,20 @@ def arg_iter(self):
kwargs = ((r_args[kw], arg) for kw, arg in as_tuple(self.kwarguments))
return chain(args, kwargs)

@property
def arg_map(self):
"""
A full map of all qualified argument matches from arguments
and keyword arguments.
Returns
-------
dict
An dictionary that mapping ``arg name: call arg`` for
all positional and then keyword arguments.
"""
return dict(self.arg_iter())

def clone(self, **kwargs):
"""
Replicate the object with the provided overrides.
Expand Down
Loading

0 comments on commit 8cd5702

Please sign in to comment.