Skip to content

Commit

Permalink
update authors, update pixi, run ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Dec 11, 2024
1 parent c27a5bb commit fe0b30f
Show file tree
Hide file tree
Showing 3 changed files with 771 additions and 820 deletions.
10 changes: 4 additions & 6 deletions docs/examples/attrs_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# This example demonstrates a tentative `attrs`-based object model.

from pathlib import Path
from typing import Any, List, Literal, NamedTuple, Optional
from typing import List, Literal, Optional

import numpy as np
from attr import asdict, define, field, fields_dict
from attr import asdict, define, field
from cattr import Converter
from flopy.discretization import StructuredGrid
from numpy.typing import NDArray
Expand Down Expand Up @@ -40,9 +40,7 @@ class Format:
digits: int
format: Literal["exponential", "fixed", "general", "scientific"]

periods: List[List[tuple]] = field(
metadata={"block": "perioddata"}
)
periods: List[List[tuple]] = field(metadata={"block": "perioddata"})
budget_file: Optional[Path] = field(
default=None, metadata={"block": "options"}
)
Expand Down Expand Up @@ -129,7 +127,7 @@ def _check_dims(self, attribute, value):

oc = GwfOc(
budget_file="some/file/path.cbc",
periods=[[("print", "budget", "steps", 1, 3, 5)]]
periods=[[("print", "budget", "steps", 1, 3, 5)]],
)
assert isinstance(oc.budget_file, str) # TODO path

Expand Down
Loading

0 comments on commit fe0b30f

Please sign in to comment.