We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 216981a commit 4e6edbdCopy full SHA for 4e6edbd
src/acoustipy/TMM.py
@@ -1210,7 +1210,7 @@ def Add_Layer_From_Tube(self,
1210
Zs_NG = self.Z0*((1+no_gap_data[:,1])/(1-no_gap_data[:,1]))
1211
Zs_G = self.Z0*((1+gap_data[:,1])/(1-gap_data[:,1]))
1212
1213
- if torch.array_equal(no_gap_data[:,0],gap_data[:,0]) != True:
+ if not torch.equal(no_gap_data[:, 0], gap_data[:, 0]):
1214
raise ValueError("Frequencies must match between no gap and gap curves")
1215
1216
T11A = torch.cos(self.k0*air_thickness)
0 commit comments