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
3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@ jobs:
- { python: "3.13", os: "ubuntu-latest", session: "pre-commit" }
# - { python: "3.13", os: "ubuntu-latest", session: "mypy" }
# - { python: "3.12", os: "ubuntu-latest", session: "mypy" }
# - { python: "3.11", os: "ubuntu-latest", session: "mypy" }
- { python: "3.13", os: "ubuntu-latest", session: "tests" }
- { python: "3.12", os: "ubuntu-latest", session: "tests" }
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
- { python: "3.13", os: "windows-latest", session: "tests" }
- { python: "3.13", os: "macos-latest", session: "tests" }
# - { python: "3.13", os: "ubuntu-latest", session: "typeguard" }
# - { python: "3.12", os: "ubuntu-latest", session: "typeguard" }
# - { python: "3.11", os: "ubuntu-latest", session: "typeguard" }
# - { python: "3.13", os: "ubuntu-latest", session: "xdoctest" }
- { python: "3.13", os: "ubuntu-latest", session: "docs-build" }

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Request features on the [Issue Tracker].

## How to set up your development environment

You need Python 3.11+ and the following tools:
You need Python 3.12+ and the following tools:

- [uv]
- [Nox]
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
raise SystemExit(dedent(message)) from None

package = "mdio"
python_versions = ["3.13", "3.12", "3.11"]
python_versions = ["3.13", "3.12"]
nox.needs_version = ">=2025.2.9"
nox.options.default_venv_backend = "uv"
nox.options.reuse_venv = "yes"
Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ name = "multidimio"
version = "1.1.3"
description = "Cloud-native, scalable, and user-friendly multi dimensional energy data!"
authors = [{ name = "Altay Sansal", email = "altay.sansal@tgs.com" }]
requires-python = ">=3.11,<3.14"
requires-python = ">=3.12,<3.14"
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICEN[CS]E*"]
keywords = ["mdio", "multidimio", "seismic", "wind", "data"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: Apache Software License",
Expand All @@ -31,7 +30,7 @@ dependencies = [
"tqdm>=4.67.1",
"universal-pathlib>=0.3.3",
"xarray>=2025.10.1",
"zarr>=3.1.3,<=3.1.6",
"zarr>=3.2.1",
]

[project.optional-dependencies]
Expand Down Expand Up @@ -80,7 +79,7 @@ docs = [
required-version = ">=0.8.17"

[tool.ruff]
target-version = "py311"
target-version = "py312"
src = ["src"]
line-length = 120

Expand Down
4 changes: 1 addition & 3 deletions src/mdio/builder/schemas/v1/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

from __future__ import annotations

from typing import TypeAlias

from pydantic import Field

from mdio.builder.schemas.core import CamelCaseStrictModel
Expand All @@ -44,7 +42,7 @@ class EdgeDefinedHistogram(BaseHistogram):
bin_widths: list[float | int] = Field(..., description="The widths of the histogram bins.")


Histogram: TypeAlias = CenteredBinHistogram | EdgeDefinedHistogram
type Histogram = CenteredBinHistogram | EdgeDefinedHistogram


class SummaryStatistics(CamelCaseStrictModel):
Expand Down
4 changes: 1 addition & 3 deletions src/mdio/builder/schemas/v1/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

from __future__ import annotations

from typing import TypeAlias

from pint import UnitRegistry

from mdio.builder.schemas.units import UnitEnum
Expand Down Expand Up @@ -97,7 +95,7 @@ class VoltageUnitEnum(UnitEnum):


# Composite model types
AllUnitModel: TypeAlias = (
AllUnitModel = (
LengthUnitModel
| TimeUnitModel
| AngleUnitModel
Expand Down
7 changes: 3 additions & 4 deletions src/mdio/builder/templates/types.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
"""Type aliases and declarative specs for templates."""

from typing import Literal
from typing import TypeAlias

from pydantic import BaseModel

from mdio.builder.schemas.dtype import ScalarType

SeismicDataDomain: TypeAlias = Literal["depth", "time"]
type SeismicDataDomain = Literal["depth", "time"]

CdpGatherDomain: TypeAlias = Literal["offset", "angle"]
type CdpGatherDomain = Literal["offset", "angle"]

DimCoordinateTypes: TypeAlias = dict[str, ScalarType]
type DimCoordinateTypes = dict[str, ScalarType]


class CoordinateSpec(BaseModel):
Expand Down
513 changes: 7 additions & 506 deletions uv.lock

Large diffs are not rendered by default.

Loading