提交 97ec950a authored 作者: Frederic Bastien's avatar Frederic Bastien

Rename for consisency

上级 d79b637d
...@@ -2322,13 +2322,13 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions ...@@ -2322,13 +2322,13 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions
self.output_keys = output_keys self.output_keys = output_keys
self.name = name self.name = name
def create(self, defaults=None, trustme=False, storage_map=None): def create(self, input_storage=None, trustme=False, storage_map=None):
""" """
Create a function. Create a function.
Parameters Parameters
---------- ----------
defaults input_storage
A list matching the inputs list and providing default values if the A list matching the inputs list and providing default values if the
default for an input is None, then that input is a required input. default for an input is None, then that input is a required input.
For an input with an update, the default acts as initialization. For an input with an update, the default acts as initialization.
...@@ -2336,8 +2336,8 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions ...@@ -2336,8 +2336,8 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions
Disables some exceptions, used internally. Disables some exceptions, used internally.
""" """
if defaults is None: if input_storage is None:
defaults = [None] * len(self.inputs) input_storage = [None] * len(self.inputs)
# List of independent one-element lists, will be passed to the linker. # List of independent one-element lists, will be passed to the linker.
input_storage_list = [] input_storage_list = []
_defaults = [] _defaults = []
...@@ -2345,7 +2345,7 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions ...@@ -2345,7 +2345,7 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions
# The following loop is to fill in the input_storage_list and _defaults # The following loop is to fill in the input_storage_list and _defaults
# lists. # lists.
for (input, indices, subinputs), default in izip(self.indices, for (input, indices, subinputs), default in izip(self.indices,
defaults): input_storage):
__default = default __default = default
if isinstance(default, gof.Container): if isinstance(default, gof.Container):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论