Skip to content

Commit

Permalink
Import functools
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Nov 17, 2022
1 parent 4b18ce7 commit b2acc2e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pybamm/expression_tree/symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import sympy
from anytree.exporter import DotExporter
from scipy.sparse import csr_matrix, issparse
from functools import cache
from functools import cached_property

import pybamm
from pybamm.expression_tree.printing.print_name import prettify_print_name
Expand Down
1 change: 1 addition & 0 deletions pybamm/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import copy
import casadi
import numpy as np
from functools import cached_property

import pybamm
from pybamm.expression_tree.operations.latexify import Latexify
Expand Down
1 change: 1 addition & 0 deletions pybamm/models/full_battery_models/base_battery_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import pybamm
import numbers
from functools import cached_property


class BatteryModelOptions(pybamm.FuzzyDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
import pybamm
import numpy as np
from functools import cache


class ElectrodeSOH(pybamm.BaseModel):
Expand Down
1 change: 1 addition & 0 deletions pybamm/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import copy
import warnings
import sys
from functools import cache


def is_notebook():
Expand Down
1 change: 1 addition & 0 deletions pybamm/solvers/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import pybamm
import pandas as pd
from scipy.io import savemat
from functools import cached_property


class NumpyEncoder(json.JSONEncoder):
Expand Down

0 comments on commit b2acc2e

Please sign in to comment.