-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added gizmo.py #33
base: master
Are you sure you want to change the base?
added gizmo.py #33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start!
def relative_path(subject_identifier): | ||
names = [] | ||
for i in range(len(subject_identifier)): | ||
temp = subject_identifier[i] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can just do: for temp in subject_identifier
Returns: | ||
A multiplication table from a to b. | ||
""" | ||
temp = np.outer(list(range(a,b+1)),list(range(a,b+1))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alternatively:
temp = np.outer(np.arange(a, b + 1), np.arange(a, b + 1))
""" | ||
Creates a multiplication table from a to b. | ||
|
||
Parameters: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameters: | |
Parameters | |
---------- |
Zero_out_multiplies : int | ||
All the multiplies of the int will be set to 0. Defaults None. | ||
|
||
Returns: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returns: | |
Returns | |
------- |
Default 1. | ||
b : int | ||
Default 12, | ||
Zero_out_multiplies : int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zero_out_multiplies : int | |
zero_out_multiples : int |
No description provided.