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
39 changes: 0 additions & 39 deletions .github/workflows/interrogate.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/run-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pyogrio
pip install .[dev]
pip install pre-commit ruff black
- name: pre-commit checks
run: |
pre-commit run black --all-files
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ license:
message: If you use this software, please cite it using the metadata from this file.
title: "PyEarthTools: Machine learning for Earth system science"
type: software
version: 0.5.1
version: 0.6.0
5 changes: 3 additions & 2 deletions packages/data/src/pyearthtools/data/transforms/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ def __filter(
operator_package = np
if isinstance(data, (xr.Dataset, xr.DataArray)):
operator_package = xr
data = type(data)(data) # type: ignore
data = data.copy()
if search_data is not None:
search_data = type(search_data)(search_data) # type: ignore
# search_data = type(search_data)(search_data) # type: ignore
search_data = search_data.copy()

operations_dict = {
">": operator.gt,
Expand Down
3 changes: 0 additions & 3 deletions packages/pipeline/src/pyearthtools/pipeline/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ def __enter__(self):

def __exit__(self, exc_type, exc_val, traceback):

# if exc_type:
# import pudb; pudb.set_trace()

if exc_type in self._exceptions:
self._count += 1
self._messages.append(str(exc_val))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def __init__(self, coordinate: Hashable):
self._coordinate = coordinate

def apply_func(self, dataset: xr.Dataset) -> xr.Dataset | xr.DataArray:
dataset = type(dataset)(dataset)
dataset = dataset.copy()

for coord in self._coordinate:
dtype = dataset.attrs.get(f"{coord}-dtype", "int32")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ def test_CoordinateFlatten_skip_missing():


def test_undo_CoordinateFlatten():

import sys

print(f"Recursion limit set to {str(sys.getrecursionlimit())}")

f = reshape.CoordinateFlatten(["height"])
f_output = f.apply(SIMPLE_DS2)
f_undone = f.undo(f_output)
Expand Down
32 changes: 16 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,38 +26,38 @@ PyEarthTools: Machine learning for Earth system science.
version = "0.6.0"

dependencies = [
"pyearthtools-utils>=0.5.1",
"pyearthtools-data>=0.5.1",
"pyearthtools-pipeline>=0.5.1",
"pyearthtools-training>=0.5.1",
"pyearthtools-zoo>=0.5.1",
"pyearthtools-utils>=0.6.0",
"pyearthtools-data>=0.6.0",
"pyearthtools-pipeline>=0.6.0",
"pyearthtools-training>=0.6.0",
"pyearthtools-zoo>=0.6.0",
]

[project.optional-dependencies]
utils = [
"pyearthtools-utils>=0.5.1",
"pyearthtools-utils>=0.6.0",
]
data = [
"pyearthtools-data>=0.5.1",
"pyearthtools-data>=0.6.0",
]
pipeline = [
"pyearthtools-pipeline>=0.5.1",
"pyearthtools-pipeline>=0.6.0",
]
training = [
"pyearthtools-training>=0.5.1",
"pyearthtools-training>=0.6.0",
]
zoo = [
"pyearthtools-zoo>=0.5.1",
"pyearthtools-zoo>=0.6.0",
]
all = [
"pyearthtools-utils>=0.5.1",
"pyearthtools-data[all]>=0.5.1",
"pyearthtools-pipeline[all]>=0.5.1",
"pyearthtools-training[all]>=0.5.1",
"pyearthtools-zoo>=0.5.1",
"pyearthtools-utils>=0.6.0",
"pyearthtools-data[all]>=0.6.0",
"pyearthtools-pipeline[all]>=0.6.0",
"pyearthtools-training[all]>=0.6.0",
"pyearthtools-zoo>=0.6.0",
]
test = ["pytest", "pytest-cov", "pytest-xdist"]
dev = ["pre-commit", "black==25.1.0", "interrogate", "ruff", "pudb"]
dev = ["pre-commit", "black==25.1.0", "ruff", "pudb"]
docs = [
"sphinx",
"myst-parser",
Expand Down
Loading