-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from CASCI-lab/style-and-formatting-patch1
format, style, and fixed some unused args
- Loading branch information
Showing
16 changed files
with
1,681 additions
and
1,027 deletions.
There are no files selected for viewing
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,19 +1,21 @@ | ||
__package__ = 'cana' | ||
__title__ = u'CANAlization: Control & Redundancy in Boolean Networks' | ||
__description__ = u'This package implements a series of methods used to study control, canalization and redundancy in Boolean networks.' | ||
__package__ = "cana" | ||
__title__ = "CANAlization: Control & Redundancy in Boolean Networks" | ||
__description__ = "This package implements a series of methods used to study control, canalization and redundancy in Boolean networks." | ||
|
||
__author__ = """\n""".join([ | ||
'Rion Brattig Correia <rionbr@gmail.com>', | ||
'Alex Gates <ajgates42@gmail.com>', | ||
'Xuan Wang <xw47@indiana.edu>', | ||
'Thomas Parmer <tjparmer@indiana.edu>', | ||
'Etienne Nzabarushimana <enzabaru@indiana.edu>', | ||
'Luis M. Rocha <rocha@indiana.edu>' | ||
]) | ||
__author__ = """\n""".join( | ||
[ | ||
"Rion Brattig Correia <rionbr@gmail.com>", | ||
"Alex Gates <ajgates42@gmail.com>", | ||
"Xuan Wang <xw47@indiana.edu>", | ||
"Thomas Parmer <tjparmer@indiana.edu>", | ||
"Etienne Nzabarushimana <enzabaru@indiana.edu>", | ||
"Luis M. Rocha <rocha@indiana.edu>", | ||
] | ||
) | ||
|
||
__copyright__ = u'2021, Correia, R. B., Gates, A., Rocha, L. M.' | ||
__copyright__ = "2021, Correia, R. B., Gates, A., Rocha, L. M." | ||
|
||
__version__ = '0.2.0' | ||
__release__ = '0.2.0' | ||
__version__ = "0.2.0" | ||
__release__ = "0.2.0" | ||
# | ||
__all__ = ['boolean_network', 'boolean_node'] | ||
__all__ = ["boolean_network", "boolean_node"] |
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,18 +1,22 @@ | ||
import warnings | ||
import functools | ||
import warnings | ||
|
||
|
||
def deprecated(func): | ||
"""This is a decorator which can be used to mark functions as deprecated. | ||
It will result in a warning being emitted when the function is used. | ||
""" | ||
|
||
@functools.wraps(func) | ||
def new_func(*args, **kwargs): | ||
warnings.warn_explicit( | ||
"You've called a deprecated function. Maybe this function needs updating to the new package. {}".format(func.__name__), | ||
"You've called a deprecated function. Maybe this function needs updating to the new package. {}".format( | ||
func.__name__ | ||
), | ||
category=DeprecationWarning, | ||
filename=func.func_code.co_filename, | ||
lineno=func.func_code.co_firstlineno + 1 | ||
lineno=func.func_code.co_firstlineno + 1, | ||
) | ||
return func(*args, **kwargs) | ||
|
||
return new_func |
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
Oops, something went wrong.