-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Amanda Potts <ajpotts@users.noreply.github.com>
- Loading branch information
Showing
17 changed files
with
193 additions
and
12 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
Empty file.
Empty file.
Empty file.
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 @@ | ||
from numpy import bool_, character, int_, integer, object_, str_ | ||
|
||
__all__ = ["bool_", "character", "int_", "integer", "object_", "str_"] |
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 @@ | ||
from numpy import integer | ||
|
||
__all__ = ["integer"] |
Empty file.
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 @@ | ||
from numpy import RankWarning, TooHardError | ||
|
||
__all__ = ["RankWarning", "TooHardError"] |
Empty file.
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,30 @@ | ||
# flake8: noqa | ||
from numpy import ( | ||
RankWarning, | ||
add_docstring, | ||
add_newdoc, | ||
deprecate, | ||
deprecate_with_doc, | ||
disp, | ||
issubclass_, | ||
issubdtype, | ||
polynomial, | ||
typename, | ||
) | ||
|
||
from arkouda.numpy.lib import emath | ||
from arkouda.numpy.lib.emath import * | ||
|
||
__all__ = [ | ||
"RankWarning", | ||
"add_docstring", | ||
"add_newdoc", | ||
"deprecate", | ||
"deprecate_with_doc", | ||
"disp", | ||
"emath", | ||
"issubclass_", | ||
"issubdtype", | ||
"polynomial", | ||
"typename", | ||
] |
Empty file.
Empty file.
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 @@ | ||
from numpy import bool_ | ||
|
||
__all__ = ["bool_"] |
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 @@ | ||
from numpy import polynomial | ||
|
||
__all__ = ["polynomial"] |
Empty file.
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 @@ | ||
from numpy import format_parser | ||
|
||
__all__ = ["format_parser"] |
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 @@ | ||
# This script finds all the classes and functions who's doc string contains "array". These functions are most likely not natively compatible with arkouda and should probalby be excluded from any automatic imports. | ||
|
||
import inspect | ||
|
||
def exclude(name, obj)->bool: | ||
if hasattr(obj, "__doc__") and not name.startswith("__") and obj.__doc__ is not None: | ||
if "array" in obj.__doc__: | ||
return True | ||
return False | ||
|
||
|
||
def main(): | ||
|
||
import numpy as np | ||
|
||
exclude_set = set() | ||
for name, obj in inspect.getmembers(np): | ||
if exclude(name, obj): | ||
exclude_set.add(name) | ||
if inspect.isclass(obj): | ||
for func_name, func in inspect.getmembers(obj): | ||
if exclude(name, obj): | ||
exclude_set.add(name) | ||
|
||
exclude_list = list(exclude_set) | ||
keep_list = list(set(dir(np)).difference(exclude_list)) | ||
keep_list = [item for item in keep_list if not item.startswith("_")] | ||
keep_list = sorted(keep_list) | ||
|
||
print("EXCLUDE:") | ||
print(exclude_list) | ||
print("KEEP:") | ||
print(keep_list) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |