Skip to content

Commit

Permalink
update comments and api document for stepspy
Browse files Browse the repository at this point in the history
  • Loading branch information
changgang committed Feb 2, 2021
1 parent e863709 commit 65d5c87
Show file tree
Hide file tree
Showing 3 changed files with 250 additions and 105 deletions.
2 changes: 1 addition & 1 deletion python/extract_stepspy_apis.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# program to extract stepspy APIs to text file.
with open("./stepspy-current/stepspy/stepspy2.py","rt") as fid_stepspy:
with open("./stepspy-current/stepspy/stepspy.py","rt") as fid_stepspy:
with open("stepspy_api.txt","wt") as fid_api:
napi = 0
while True:
Expand Down
7 changes: 5 additions & 2 deletions python/stepspy-current/stepspy/stepspy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4293,9 +4293,12 @@ def save_network_Y_matrix(self, file, export_full=False):
"""
Save newwork complex Y matrix to file.
Args:
(1) file: String of target file name.
(1) file: String of target file name of sparse Y matrix. If export_full is True, then 'full_' is appended to the head of file name for full matrix.
(2) export_full: boolean. False for saving only the sparse network matrix. True for saving both sparse and full network matrix.
Rets: N/A
Example: N/A
Example:
simulator.save_network_Y_matrix("y.csv") # save only sparse matrix to y.csv
simulator.save_network_Y_matrix("y.csv", True) # save both sparse and full matrix to y.csv and full_y.csv respectively
"""
global STEPS_LIB
file = self.__get_c_char_p_of_string(file)
Expand Down
Loading

0 comments on commit 65d5c87

Please sign in to comment.