Skip to content

Commit

Permalink
It was just a ssqueeze
Browse files Browse the repository at this point in the history
  • Loading branch information
Seeratul committed May 9, 2023
1 parent d20aece commit b98fd3b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/2023-homework04-Seeratul/v17/.wsuo
Binary file not shown.
12 changes: 6 additions & 6 deletions combination.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
def combination(a1,a2,axis = 0):
# delete the NotImplementedError when you write your function.
try:
#a1 = np.squeeze(a1)
#a2 = np.squeeze(a2)
a1 = np.squeeze(a1)
a2 = np.squeeze(a2)
return np.concatenate((a1,a2),axis)

except:
Expand All @@ -15,8 +15,8 @@ def combination(a1,a2,axis = 0):


if __name__ == "__main__":
# use this for your own testing!
#a1 = np.ones((2,2))
#a2 = np.ones((2,2))
#print(combination(a1,a2))
#use this for your own testing!
a1 = np.ones((2,2))
a2 = np.array([[[[1, 2], [3, 4], [5, 6]]]])
print(combination(a1,a2))
pass

0 comments on commit b98fd3b

Please sign in to comment.