Skip to content

Commit 8a5431b

Browse files
update generated code (#1716)
Co-authored-by: rlagha <[email protected]>
1 parent d8a7360 commit 8a5431b

File tree

7 files changed

+61
-37
lines changed

7 files changed

+61
-37
lines changed

doc/source/_static/dpf_operators.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/ansys/dpf/core/operators/result/migrate_to_h5dpf.py

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ class migrate_to_h5dpf(Operator):
2424
native compression applicable for
2525
arrays of floats, doubles and
2626
integers.
27-
h5_native_compression : int, optional
28-
Integer value that defines the h5 native
29-
compression used 0: no compression
30-
(default)1-9: gzip level compression
31-
: 9 gives us maximum compression but
32-
at the slowest speed.
27+
h5_native_compression : int or DataTree, optional
28+
Integer value / datatree that defines the h5
29+
native compression used for integer
30+
input {0: no compression (default);
31+
1-9: gzip compression : 9 provides
32+
maximum compression but at the
33+
slowest speed.}for datatree input
34+
{type: none / gzip / zstd; level:
35+
gzip (1-9) / zstd (1-20);
36+
num_threads: zstd (>0)}
3337
export_floats : bool, optional
3438
Converts double to float to reduce file size
3539
(default is true)
@@ -173,13 +177,17 @@ def _spec():
173177
),
174178
-2: PinSpecification(
175179
name="h5_native_compression",
176-
type_names=["int32"],
180+
type_names=["int32", "abstract_data_tree"],
177181
optional=True,
178-
document="""Integer value that defines the h5 native
179-
compression used 0: no compression
180-
(default)1-9: gzip level compression
181-
: 9 gives us maximum compression but
182-
at the slowest speed.""",
182+
document="""Integer value / datatree that defines the h5
183+
native compression used for integer
184+
input {0: no compression (default);
185+
1-9: gzip compression : 9 provides
186+
maximum compression but at the
187+
slowest speed.}for datatree input
188+
{type: none / gzip / zstd; level:
189+
gzip (1-9) / zstd (1-20);
190+
num_threads: zstd (>0)}""",
183191
),
184192
-1: PinSpecification(
185193
name="export_floats",
@@ -386,15 +394,19 @@ def dataset_size_compression_threshold(self):
386394
def h5_native_compression(self):
387395
"""Allows to connect h5_native_compression input to the operator.
388396
389-
Integer value that defines the h5 native
390-
compression used 0: no compression
391-
(default)1-9: gzip level compression
392-
: 9 gives us maximum compression but
393-
at the slowest speed.
397+
Integer value / datatree that defines the h5
398+
native compression used for integer
399+
input {0: no compression (default);
400+
1-9: gzip compression : 9 provides
401+
maximum compression but at the
402+
slowest speed.}for datatree input
403+
{type: none / gzip / zstd; level:
404+
gzip (1-9) / zstd (1-20);
405+
num_threads: zstd (>0)}
394406
395407
Parameters
396408
----------
397-
my_h5_native_compression : int
409+
my_h5_native_compression : int or DataTree
398410
399411
Examples
400412
--------

src/ansys/dpf/core/operators/serialization/hdf5dpf_generate_result_file.py

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ class hdf5dpf_generate_result_file(Operator):
2222
native compression applicable for
2323
arrays of floats, doubles and
2424
integers.
25-
h5_native_compression : int, optional
26-
Integer value that defines the h5 native
27-
compression used 0: no compression
28-
(default)1-9: gzip level compression
29-
: 9 gives us maximum compression but
30-
at the slowest speed.
25+
h5_native_compression : int or DataTree, optional
26+
Integer value / datatree that defines the h5
27+
native compression used for integer
28+
input {0: no compression (default);
29+
1-9: gzip compression : 9 provides
30+
maximum compression but at the
31+
slowest speed.}for datatree input
32+
{type: none / gzip / zstd; level:
33+
gzip (1-9) / zstd (1-20);
34+
num_threads: zstd (>0)}
3135
export_floats : bool, optional
3236
Converts double to float to reduce file size
3337
(default is true)
@@ -172,13 +176,17 @@ def _spec():
172176
),
173177
-2: PinSpecification(
174178
name="h5_native_compression",
175-
type_names=["int32"],
179+
type_names=["int32", "abstract_data_tree"],
176180
optional=True,
177-
document="""Integer value that defines the h5 native
178-
compression used 0: no compression
179-
(default)1-9: gzip level compression
180-
: 9 gives us maximum compression but
181-
at the slowest speed.""",
181+
document="""Integer value / datatree that defines the h5
182+
native compression used for integer
183+
input {0: no compression (default);
184+
1-9: gzip compression : 9 provides
185+
maximum compression but at the
186+
slowest speed.}for datatree input
187+
{type: none / gzip / zstd; level:
188+
gzip (1-9) / zstd (1-20);
189+
num_threads: zstd (>0)}""",
182190
),
183191
-1: PinSpecification(
184192
name="export_floats",
@@ -395,15 +403,19 @@ def dataset_size_compression_threshold(self):
395403
def h5_native_compression(self):
396404
"""Allows to connect h5_native_compression input to the operator.
397405
398-
Integer value that defines the h5 native
399-
compression used 0: no compression
400-
(default)1-9: gzip level compression
401-
: 9 gives us maximum compression but
402-
at the slowest speed.
406+
Integer value / datatree that defines the h5
407+
native compression used for integer
408+
input {0: no compression (default);
409+
1-9: gzip compression : 9 provides
410+
maximum compression but at the
411+
slowest speed.}for datatree input
412+
{type: none / gzip / zstd; level:
413+
gzip (1-9) / zstd (1-20);
414+
num_threads: zstd (>0)}
403415
404416
Parameters
405417
----------
406-
my_h5_native_compression : int
418+
my_h5_native_compression : int or DataTree
407419
408420
Examples
409421
--------
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)