-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added functions for adding reac / metabs per database id
- Loading branch information
Showing
8 changed files
with
1,813 additions
and
1,150 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
__all__ = ['analysis','classes','curation','utility', 'cmd_access'] | ||
__all__ = ['analysis','classes','curation','decorators','utility', 'cmd_access'] | ||
|
||
from . import analysis | ||
from . import classes | ||
from . import curation | ||
from . import decorators | ||
from . import utility | ||
from . import cmd_access |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
__all__ = ['decorators'] | ||
|
||
from . import decorators |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env python | ||
"""This module contains decorator functions. | ||
""" | ||
|
||
__author__ = "Carolin Brune" | ||
|
||
################################################################################ | ||
# requirements | ||
################################################################################ | ||
|
||
################################################################################ | ||
# variables | ||
################################################################################ | ||
|
||
################################################################################ | ||
# functions | ||
################################################################################ | ||
|
||
def template(func): | ||
"""A decorator for template functions. | ||
Template functions are not executable and are only for developers. | ||
""" | ||
def wrapper(): | ||
raise RuntimeError('This function is a template for developers.\nIt cannot be executed.') | ||
return wrapper | ||
|
||
|
||
def implement(func): | ||
"""A decorator for functions, that should be implemented. | ||
Used to give a hint to other developers, that this function is not yet implemented, | ||
but should be to make the program executable. | ||
""" | ||
def wrapper(): | ||
raise NotImplementedError('The current function is just a placeholder and will be implement in the fucture.') | ||
return wrapper |
Oops, something went wrong.