liblaf.melon.io
¤
Modules:
-
abc– -
paraview– -
pyvista– -
trimesh– -
warp– -
wrap–
Classes:
-
PVDWriter–.
-
SeriesReader– -
SeriesWriter–
Functions:
-
as_mesh– -
get_landmarks_path– -
get_polygons_path– -
load_landmarks– -
load_polygons– -
save_landmarks– -
save_polygons–
Attributes:
-
as_multi_block(ConverterDispatcher[MultiBlock]) – -
as_pointset(ConverterDispatcher[PointSet]) – -
as_polydata(ConverterDispatcher[PolyData]) – -
as_structured_grid(ConverterDispatcher[StructuredGrid]) – -
as_trimesh(ConverterDispatcher[Trimesh]) – -
as_unstructured_grid(ConverterDispatcher[UnstructuredGrid]) – -
as_warp_mesh(ConverterDispatcher[Mesh]) – -
load_multi_block(ReaderDispatcher[MultiBlock]) – -
load_polydata(ReaderDispatcher[PolyData]) – -
load_structured_grid(ReaderDispatcher[StructuredGrid]) – -
load_trimesh(ReaderDispatcher[Trimesh]) – -
load_unstructured_grid(ReaderDispatcher[UnstructuredGrid]) – -
save–
as_multi_block
module-attribute
¤
as_multi_block: ConverterDispatcher[MultiBlock] = (
ConverterDispatcher(MultiBlock)
)
as_pointset
module-attribute
¤
as_polydata
module-attribute
¤
as_structured_grid
module-attribute
¤
as_structured_grid: ConverterDispatcher[StructuredGrid] = (
ConverterDispatcher(StructuredGrid)
)
as_trimesh
module-attribute
¤
as_unstructured_grid
module-attribute
¤
as_unstructured_grid: ConverterDispatcher[
UnstructuredGrid
] = ConverterDispatcher(UnstructuredGrid)
as_warp_mesh
module-attribute
¤
load_multi_block
module-attribute
¤
load_multi_block: ReaderDispatcher[MultiBlock] = (
ReaderDispatcher(MultiBlock)
)
load_polydata
module-attribute
¤
load_structured_grid
module-attribute
¤
load_structured_grid: ReaderDispatcher[StructuredGrid] = (
ReaderDispatcher(StructuredGrid)
)
load_trimesh
module-attribute
¤
load_unstructured_grid
module-attribute
¤
load_unstructured_grid: ReaderDispatcher[
UnstructuredGrid
] = ReaderDispatcher(UnstructuredGrid)
PVDWriter
¤
.
References
Parameters:
-
(clear¤bool, default:False) – -
(file¤Path, default:PosixPath('animation.pvd')) – -
(fps¤float, default:30.0) –
Attributes:
-
datasets(list[PVDDataSet]) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
-
__attrs_post_init__– -
append– -
end–
datasets
class-attribute
instance-attribute
¤
file
class-attribute
instance-attribute
¤
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/melon/io/paraview/_pvd_writer.py
39 40 41 | |
append
¤
Source code in src/liblaf/melon/io/paraview/_pvd_writer.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
end
¤
end() -> None
Source code in src/liblaf/melon/io/paraview/_pvd_writer.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |
SeriesReader
¤
Bases: Sequence[T]
flowchart TD
liblaf.melon.io.SeriesReader[SeriesReader]
click liblaf.melon.io.SeriesReader href "" "liblaf.melon.io.SeriesReader"
Parameters:
Methods:
-
__getitem__– -
__len__–
Attributes:
-
file(Path) – -
folder(Path) – -
loader(Callable[[Path], T]) – -
series(Series) – -
time_values(list[float]) –
Source code in src/liblaf/melon/io/paraview/series/_reader.py
24 25 26 | |
__getitem__
¤
Source code in src/liblaf/melon/io/paraview/series/_reader.py
32 33 34 35 36 37 38 | |
SeriesWriter
¤
SeriesWriter(
file: StrPath,
/,
*,
clear: bool = False,
fps: float = 30.0,
step: float | None = None,
)
Bases: Sequence[File], AbstractContextManager
flowchart TD
liblaf.melon.io.SeriesWriter[SeriesWriter]
click liblaf.melon.io.SeriesWriter href "" "liblaf.melon.io.SeriesWriter"
Parameters:
Methods:
-
__enter__– -
__exit__– -
__getitem__– -
__len__– -
append– -
end– -
save– -
start–
Attributes:
-
ext(str) – -
file(Path) – -
folder(Path) – -
fps(float) – -
name(str) – -
series(Series) – -
step(float) – -
time(float) –
Source code in src/liblaf/melon/io/paraview/series/_writer.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |
__enter__
¤
__enter__() -> Self
Source code in src/liblaf/melon/io/paraview/series/_writer.py
66 67 68 | |
__exit__
¤
__exit__(
exc_type: type[BaseException] | None,
exc_value: BaseException | None,
traceback: TracebackType | None,
) -> None
Source code in src/liblaf/melon/io/paraview/series/_writer.py
70 71 72 73 74 75 76 | |
__getitem__
¤
Source code in src/liblaf/melon/io/paraview/series/_writer.py
60 61 | |
__len__
¤
__len__() -> int
Source code in src/liblaf/melon/io/paraview/series/_writer.py
63 64 | |
append
¤
Source code in src/liblaf/melon/io/paraview/series/_writer.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | |
end
¤
end() -> None
Source code in src/liblaf/melon/io/paraview/series/_writer.py
116 117 | |
save
¤
save() -> None
Source code in src/liblaf/melon/io/paraview/series/_writer.py
119 120 121 122 | |
start
¤
start() -> None
Source code in src/liblaf/melon/io/paraview/series/_writer.py
124 125 | |
as_mesh
¤
as_mesh(mesh: Any) -> PolyData | UnstructuredGrid
Source code in src/liblaf/melon/io/pyvista/_convert.py
11 12 13 14 15 16 | |
get_landmarks_path
¤
Source code in src/liblaf/melon/io/wrap/landmarks/_utils.py
5 6 7 8 9 | |
get_polygons_path
¤
Source code in src/liblaf/melon/io/wrap/polygons/_utils.py
5 6 7 8 9 | |
load_landmarks
¤
Source code in src/liblaf/melon/io/wrap/landmarks/_reader.py
12 13 14 15 16 17 | |
load_polygons
¤
load_polygons(path: StrPath) -> Integer[ndarray, ' N']
Source code in src/liblaf/melon/io/wrap/polygons/_reader.py
17 18 19 20 | |
save_landmarks
¤
Source code in src/liblaf/melon/io/wrap/landmarks/_writer.py
12 13 14 15 16 17 18 19 20 | |
save_polygons
¤
save_polygons(
path: str | PathLike[str],
polygons: Bool[ArrayLike, " N"]
| Integer[ArrayLike, " N"],
) -> None
Source code in src/liblaf/melon/io/wrap/polygons/_writer.py
12 13 14 15 16 17 18 19 20 | |