-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update outer and inner function reference
- Loading branch information
1 parent
bf31ab9
commit 3599c99
Showing
3 changed files
with
148 additions
and
89 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import re | ||
import pandas as pd | ||
import matplotlib.pyplot as plt | ||
from matplotlib_venn import venn2 | ||
|
||
import slycot | ||
slycot.__version__ | ||
|
||
def get_slycot_routines(sly): | ||
all_attributes = dir(sly) | ||
r = re.compile("[a-z][a-z][0-9][0-9a-z][a-z][a-z]") | ||
matched_attributes = list(filter(r.match, all_attributes)) # Read Note below | ||
return matched_attributes | ||
|
||
slycot_wrapper = get_slycot_routines(slycot) | ||
slycot_wrapper.sort() | ||
slycot_f2py_wrapper = get_slycot_routines(slycot._wrapper) | ||
slycot_f2py_wrapper.sort() | ||
|
||
print(f"\nslycot_wrapper {len(slycot_wrapper)}\n") | ||
for routine in slycot_wrapper: | ||
print(routine) | ||
|
||
print(f"\nslycot_f2py_wrapper {len(slycot_f2py_wrapper)}\n") | ||
for routine in slycot_f2py_wrapper: | ||
print("_wrapper."+routine) | ||
|
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