Skip to content

Commit

Permalink
Fix typo in use of conv. kernels module (#63)
Browse files Browse the repository at this point in the history
* fix kernels typo
---------

Co-authored-by: Clement Helsens <clementhelsens>
Co-authored-by: Simone Balducci <[email protected]>
  • Loading branch information
clementhelsens and sbaldu authored Oct 21, 2024
1 parent e1f4cdd commit 66077d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CLUEstering/CLUEstering.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,18 +510,18 @@ def choose_kernel(self,
if len(parameters) != 1:
raise ValueError("Wrong number of parameters. The flat kernel"
+ " requires 1 parameter.")
self.kernel = CLUE_Convolutional_Kernels.FlatKernel(parameters[0])
self.kernel = clue_kernels.FlatKernel(parameters[0])
elif choice == "exp":
if len(parameters) != 2:
raise ValueError("Wrong number of parameters. The exponential"
+ " kernel requires 2 parameters.")
self.kernel = CLUE_Convolutional_Kernels.ExponentialKernel(parameters[0],
self.kernel = clue_kernels.ExponentialKernel(parameters[0],
parameters[1])
elif choice == "gaus":
if len(parameters) != 3:
raise ValueError("Wrong number of parameters. The gaussian" +
" kernel requires 3 parameters.")
self.kernel = CLUE_Convolutional_Kernels.GaussinKernel(parameters[0],
self.kernel = clue_kernels.GaussianKernel(parameters[0],
parameters[1],
parameters[2])
elif choice == "custom":
Expand Down

0 comments on commit 66077d4

Please sign in to comment.