Skip to content

Commit

Permalink
Use standard module importlib.metadata instead
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Jun 19, 2023
1 parent e59f9d9 commit a80e466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pybamm/parameters/parameter_sets.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import warnings
import importlib_metadata
import importlib.metadata
import textwrap
from collections.abc import Mapping

Expand Down Expand Up @@ -36,7 +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(
for entry_point in importlib.metadata.entry_points(
group="pybamm_parameter_sets"
):
self.__all_parameter_sets[entry_point.name] = entry_point
Expand Down

0 comments on commit a80e466

Please sign in to comment.