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
1 change: 1 addition & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Most users should keep calling ``model.solve(...)``. If you want more control, y
* ``available_solvers`` now lists all *installed* solvers, even ones without a working license. If you used it to decide "can I actually solve with X?", switch to ``linopy.licensed_solvers`` or ``SolverClass.license_status()``.
* ``Model.solver_model`` and ``Model.solver_name`` are now read-only properties that delegate to ``model.solver``. You can't reassign them (only ``= None`` is allowed, which closes the solver), and ``solver_name`` is ``None`` before the first solve.
* ``result.solution.primal`` and ``result.solution.dual`` are now ``numpy`` arrays indexed by linopy's integer labels (with ``NaN`` for slots without a value), instead of pandas Series keyed by variable/constraint name. If you accessed them by name, use ``model.variables[name].solution`` (or ``model.constraints[name].dual``) instead.
* Drop Python 3.10 support. Minimum supported version is now Python 3.11.

**Internal**

Expand Down
4 changes: 2 additions & 2 deletions linopy/remote/oetc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import time
from dataclasses import dataclass, field
from datetime import datetime, timedelta
from enum import Enum
from enum import StrEnum
from typing import TYPE_CHECKING, Any, Literal

if TYPE_CHECKING:
Expand All @@ -34,7 +34,7 @@
logger = logging.getLogger(__name__)


class ComputeProvider(str, Enum):
class ComputeProvider(StrEnum):
GCP = "GCP"


Expand Down
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ maintainers = [
]
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
Expand All @@ -27,10 +26,9 @@ classifiers = [
"Operating System :: OS Independent",
]

requires-python = ">=3.10"
requires-python = ">=3.11"
dependencies = [
"numpy; python_version > '3.10'",
"numpy<2; python_version <= '3.10'",
"numpy",
"scipy",
"bottleneck",
"toolz",
Expand Down
Loading