Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
apex
Commits
6d30e1ff
Commit
6d30e1ff
authored
May 30, 2018
by
Carl Case
Browse files
rename build->init
parent
ec431d33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
apex/amp/__init__.py
apex/amp/__init__.py
+1
-1
apex/amp/amp.py
apex/amp/amp.py
+2
-2
No files found.
apex/amp/__init__.py
View file @
6d30e1ff
from
.amp
import
build
,
half_function
,
float_function
,
promote_function
,
\
from
.amp
import
init
,
half_function
,
float_function
,
promote_function
,
\
register_half_function
,
register_float_function
,
register_promote_function
register_half_function
,
register_float_function
,
register_promote_function
apex/amp/amp.py
View file @
6d30e1ff
...
@@ -51,10 +51,10 @@ def register_promote_function(module, name):
...
@@ -51,10 +51,10 @@ def register_promote_function(module, name):
if
not
hasattr
(
module
,
name
):
if
not
hasattr
(
module
,
name
):
raise
ValueError
(
'No function named {} in module {}.'
.
format
(
raise
ValueError
(
'No function named {} in module {}.'
.
format
(
name
,
module
))
name
,
module
))
_USER_PROMOTE_REGISTRY
.
add
((
mod
,
fn
.
__
name
__
))
_USER_PROMOTE_REGISTRY
.
add
((
mod
ule
,
name
))
# Top-level function to insert _all_ the hooks.
# Top-level function to insert _all_ the hooks.
def
build
(
enabled
=
True
,
enable_caching
=
True
,
verbose
=
False
):
def
init
(
enabled
=
True
,
enable_caching
=
True
,
verbose
=
False
):
global
_DECORATOR_HANDLE
global
_DECORATOR_HANDLE
if
not
enabled
:
if
not
enabled
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment