Skip to content

Commit 4e6edbd

Browse files
cursoragentjakep72
andcommitted
Fix torch.array_equal -> torch.equal in Add_Layer_From_Tube
Co-authored-by: jakep72 <jakep72@users.noreply.github.com>
1 parent 216981a commit 4e6edbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/acoustipy/TMM.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ def Add_Layer_From_Tube(self,
12101210
Zs_NG = self.Z0*((1+no_gap_data[:,1])/(1-no_gap_data[:,1]))
12111211
Zs_G = self.Z0*((1+gap_data[:,1])/(1-gap_data[:,1]))
12121212

1213-
if torch.array_equal(no_gap_data[:,0],gap_data[:,0]) != True:
1213+
if not torch.equal(no_gap_data[:, 0], gap_data[:, 0]):
12141214
raise ValueError("Frequencies must match between no gap and gap curves")
12151215

12161216
T11A = torch.cos(self.k0*air_thickness)

0 commit comments

Comments
 (0)