Skip to content

Commit

Permalink
Merge pull request #17 from gerlero/docs
Browse files Browse the repository at this point in the history
Improve documentation
  • Loading branch information
gerlero authored Mar 20, 2024
2 parents 7e5d7d5 + 83d046f commit 7d6e2da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion foamlib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__version__ = "0.1.3"

from ._cases import FoamCase, AsyncFoamCase, FoamTimeDirectory
from ._cases import FoamCase, AsyncFoamCase, FoamTimeDirectory, FoamCaseBase
from ._dictionaries import (
FoamFile,
FoamFieldFile,
Expand All @@ -15,6 +15,7 @@
"FoamCase",
"AsyncFoamCase",
"FoamTimeDirectory",
"FoamCaseBase",
"FoamFile",
"FoamFieldFile",
"FoamDictionary",
Expand Down
6 changes: 3 additions & 3 deletions foamlib/_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from ._dictionaries import FoamFile, FoamFieldFile


class _FoamCaseBase(Sequence["FoamTimeDirectory"]):
class FoamCaseBase(Sequence["FoamTimeDirectory"]):
def __init__(self, path: Union[Path, str]):
self.path = Path(path).absolute()
if not self.path.is_dir():
Expand Down Expand Up @@ -271,7 +271,7 @@ def __str__(self) -> str:
return str(self.path)


class FoamCase(_FoamCaseBase):
class FoamCase(FoamCaseBase):
"""
An OpenFOAM case.
Expand Down Expand Up @@ -407,7 +407,7 @@ def clone(self, dest: Union[Path, str]) -> "FoamCase":
return FoamCase(dest)


class AsyncFoamCase(_FoamCaseBase):
class AsyncFoamCase(FoamCaseBase):
"""
An OpenFOAM case with asynchronous support.
Expand Down

0 comments on commit 7d6e2da

Please sign in to comment.