diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 135ca7d..a96746a 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -27,7 +27,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v3 with: - python-version: '3.10' + python-version: '3.12' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/sphinx_render_docs.yml b/.github/workflows/sphinx_render_docs.yml index 90ea83f..2c4fb1b 100644 --- a/.github/workflows/sphinx_render_docs.yml +++ b/.github/workflows/sphinx_render_docs.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.12' - uses: actions/checkout@v4 - name: Install sphinx and build documentation with sphinx run: | diff --git a/materialdatabase/processing/complex_permeability.py b/materialdatabase/processing/complex_permeability.py index 34603d8..0fcc73a 100644 --- a/materialdatabase/processing/complex_permeability.py +++ b/materialdatabase/processing/complex_permeability.py @@ -199,13 +199,13 @@ def fit_losses(self, self.params_pv = popt_pv # print optimal parameters - logging.info(popt_pv) + logger.info(popt_pv) # Check fit quality fit_function = self.pv_fit_function.get_function() pv_pred = fit_function((fit_data["f"].to_numpy(), fit_data["T"].to_numpy(), fit_data["b"].to_numpy()), *popt_pv) rel_error = abs(pv_pred - pv) / pv - logging.info(f"MRE = {np.mean(rel_error)}") + logger.info(f"MRE = {np.mean(rel_error)}") return popt_pv diff --git a/pyproject.toml b/pyproject.toml index 711a9ee..5c8edac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = [ ] description = "A database for ferrite core materials to store datasheet information and self-measured data." readme = "README.rst" -requires-python = ">=3.11" +requires-python = ">=3.12" classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", @@ -76,7 +76,7 @@ line-ending = "auto" [tool.mypy] -python_version = "3.11" +python_version = "3.12" warn_return_any = true warn_unused_configs = true disallow_incomplete_defs = true