Skip to content

Commit

Permalink
fix typo on initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Magnet committed Aug 29, 2023
1 parent 249ee9a commit 4967f89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DiscreteOpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def fit(self, p2p_21=None, p2p_12=None, n_jobs=1, verbose=False):
self.solve_p2p_12(n_jobs=n_jobs)


class SmoothDiscreteOptimization2(DiscreteOptimization):
class SmoothDiscreteOptimization(DiscreteOptimization):
"""
This class extends the DiscreteOptimization class with primal energies
"""
Expand Down Expand Up @@ -311,7 +311,7 @@ def _initialize(self, p2p_21=None, p2p_12=None):
p2p_21 : (n2,) array - initial map from mesh2 to mesh1
"""
# Use the function from the DiscreteOptimization class
super()._initialize(p2p_21=None, p2p_12=None)
super()._initialize(p2p_21=p2p_21, p2p_12=p2p_12)

self.Y_12 = None
self.Y_21 = None
Expand Down

0 comments on commit 4967f89

Please sign in to comment.