Skip to content

Commit

Permalink
API changes for entry_points()
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Jun 19, 2023
1 parent 9623c9b commit facd037
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pybamm/parameters/parameter_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ class ParameterSets(Mapping):
def __init__(self):
# Dict of entry points for parameter sets, lazily load entry points as
self.__all_parameter_sets = dict()
for entry_point in importlib.metadata.entry_points(
group="pybamm_parameter_sets"
):
for entry_point in importlib.metadata.entry_points()["pybamm_parameter_sets"]:
self.__all_parameter_sets[entry_point.name] = entry_point

def __new__(cls):
Expand Down

0 comments on commit facd037

Please sign in to comment.