Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

added gizmo.py #33

wants to merge 6 commits into from

Conversation

mtavast
Copy link

@mtavast mtavast commented Apr 2, 2021

No description provided.

@mtavast mtavast closed this Apr 4, 2021
@mtavast mtavast reopened this Apr 4, 2021
Copy link
Owner

@wmvanvliet wmvanvliet left a 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]
Copy link
Owner

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)))
Copy link
Owner

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:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Parameters:
Parameters
----------

Zero_out_multiplies : int
All the multiplies of the int will be set to 0. Defaults None.

Returns:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Returns:
Returns
-------

Default 1.
b : int
Default 12,
Zero_out_multiplies : int
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Zero_out_multiplies : int
zero_out_multiples : int

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants