Skip to content

Commit

Permalink
Merge pull request #35 from pybop-team/develop
Browse files Browse the repository at this point in the history
Alignment for #28, fix build error
  • Loading branch information
NicolaCourtier authored Sep 14, 2023
2 parents 0530d11 + 6d20181 commit 0d89b26
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion pybop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
#
# Optimisation class
#
from .optimisation import *
from .optimisation import BaseOptimisation
from .optimisation.NLoptOptimize import NLoptOptimize
from .optimisation.SciPyMinimize import SciPyMinimize

#
# Remove any imported modules, so we don't expose them as part of pybop
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pybop


class BaseOptimisation(object):
class BaseOptimisation:
"""
Base class for the optimisation methods.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import pybop
import nlopt
from .BaseOptimisation import BaseOptimisation


class NLoptOptimize(pybop.BaseOptimisation):
class NLoptOptimize(BaseOptimisation):
"""
Wrapper class for the NLOpt optimisation class. Extends the BaseOptimisation class.
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import pybop
from scipy.optimize import minimize
from .BaseOptimisation import BaseOptimisation


class ScipyMinimize(pybop.BaseOptimisation):
class SciPyMinimize(BaseOptimisation):
"""
Wrapper class for the Scipy optimisation class. Extends the BaseOptimisation class.
"""
Expand Down

0 comments on commit 0d89b26

Please sign in to comment.