Skip to content

Commit ff067cd

Browse files
committed
Merge branch 'dev' of github.com:NACLAB/ngc-sim-lib into dev
2 parents 27d19cc + 547dbf3 commit ff067cd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ngcsimlib/compilers/component_compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def compiled(**kwargs):
8585
funArgs = {narg: kwargs.get(narg) for _, narg in (list(_args))}
8686
funComps = {narg.split('/')[-1]: kwargs.get(narg) for narg in comp_ids}
8787

88-
return pure_fn(**funParams, **funArgs, **funComps)
88+
return pure_fn.__func__(**funParams, **funArgs, **funComps)
8989

9090
exc_order.append((compiled, out_ids, component.name))
9191
return exc_order

ngcsimlib/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __new__(cls, name, *args, **kwargs):
3232
name: the name of the context
3333
"""
3434
if len(name) == 0:
35-
critical
35+
critical("Name can not be empty")
3636
con = get_context(str(name))
3737
if con is None:
3838
return super().__new__(cls)

ngcsimlib/resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _wrapped(self=None, *_args, **_kwargs):
104104
params = {key: self.__dict__[key] for key in parameters}
105105
cargs = {key: _kwargs.get(key) for key in args}
106106

107-
vals = pure_fn(**cargs, **params, **comps)
107+
vals = pure_fn.__func__(**cargs, **params, **comps)
108108
if expand_args and len(output_compartments) > 1:
109109
fn(self, *vals)
110110
else:

0 commit comments

Comments
 (0)