Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sphinx_render_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions materialdatabase/processing/complex_permeability.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down
Loading