Skip to content

Commit 3a62bcc

Browse files
committed
Merge branch 'master' into mhanmer/operator_doc_template
2 parents ae5c6a2 + 05c565c commit 3a62bcc

File tree

13 files changed

+49
-18
lines changed

13 files changed

+49
-18
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,8 @@ src/ansys/grpc/
196196

197197
# C extensions
198198
*.so
199+
200+
# Ignore auto-generated API reference
201+
doc/source/api
202+
doc/source/examples
203+
doc/source/images/auto-generated

doc/source/_static/dpf_operators.html

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

doc/source/conf.py

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
import os
2-
import sys
3-
from glob import glob
41
from datetime import datetime
2+
from glob import glob
3+
import os
54

5+
from ansys_sphinx_theme import (
6+
ansys_favicon,
7+
get_version_match,
8+
pyansys_logo_dark_mode,
9+
pyansys_logo_light_mode,
10+
)
611
import numpy as np
712
import pyvista
13+
814
from ansys.dpf.core import __version__, server, server_factory
915
from ansys.dpf.core.examples import get_example_required_minimum_dpf_version
10-
from ansys_sphinx_theme import ansys_favicon, get_version_match, pyansys_logo_light_mode, pyansys_logo_dark_mode
1116

1217
# Manage errors
1318
pyvista.set_error_output_file("errors.txt")
@@ -161,9 +166,11 @@
161166

162167

163168
def reset_servers(gallery_conf, fname, when):
169+
import gc
170+
164171
import psutil
172+
165173
from ansys.dpf.core import server
166-
import gc
167174

168175
gc.collect()
169176
server.shutdown_all_session_servers()
@@ -174,7 +181,7 @@ def reset_servers(gallery_conf, fname, when):
174181
try:
175182
# check whether the process name matches
176183
if proc_name in proc.name():
177-
# proc.kill()
184+
proc.kill()
178185
nb_procs += 1
179186
except psutil.NoSuchProcess:
180187
pass
@@ -259,7 +266,7 @@ def reset_servers(gallery_conf, fname, when):
259266

260267
# Configuration for Sphinx autoapi
261268
suppress_warnings = [
262-
"autoapi.python_import_resolution", # Todo: remove suppression of this warning in the future
269+
"autoapi.python_import_resolution", # TODO: remove suppression of this warning in the future #1967
263270
"design.grid",
264271
"config.cache",
265272
"design.fa-build",
@@ -366,4 +373,4 @@ def reset_servers(gallery_conf, fname, when):
366373
# epub_uid = ''
367374

368375
# A list of files that should not be packed into the epub file.
369-
epub_exclude_files = ["search.html"]
376+
epub_exclude_files = ["search.html"]

requirements/requirements_docs.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
ansys-sphinx-theme[autoapi]==1.3.1
22
enum-tools[sphinx]==0.12.0
33
graphviz==0.20.1
4-
imageio==2.36.0
4+
imageio==2.36.1
55
imageio-ffmpeg==0.6.0
66
nbsphinx==0.9.6
7-
pypandoc==1.15
87
pytest-sphinx==0.6.3
98
pyvista==0.44.2
10-
sphinx==7.4.7
9+
sphinx==8.1.3
1110
sphinx-copybutton==0.5.2
1211
sphinx-gallery==0.19.0
1312
sphinx-notfound-page==1.1.0

requirements/requirements_install.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
importlib-metadata==8.5.0
1+
importlib-metadata==8.6.1
22
numpy==2.2.3
33
packaging==24.2
44
psutil==7.0.0

requirements/requirements_test.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ansys-platform-instancemanagement==1.1.2
2-
coverage==7.6.11
2+
coverage==7.6.12
33
graphviz==0.20.1
4-
imageio==2.36.0
4+
imageio==2.36.1
55
imageio-ffmpeg==0.6.0
66
pytest==8.3.4
77
pytest-cov==6.0.0

src/ansys/dpf/core/operator_specification.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ def config_specification(self) -> ConfigSpecification:
460460
"""
461461
if self._config_specification is None:
462462
self._config_specification = ConfigSpecification()
463+
if self._internal_obj is not None:
463464
num_options = self._api.operator_specification_get_num_config_options(self)
464465
for i in range(num_options):
465466
option_name = self._api.operator_specification_get_config_name(self, i)

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ class migrate_to_h5dpf(Operator):
3636
num_threads: zstd (>0)}
3737
export_floats : bool, optional
3838
Converts double to float to reduce file size
39-
(default is true)
39+
(default is true).if false, nodal
40+
results are exported as double
41+
precision and elemental results as
42+
single precision.
4043
filename : str
4144
Filename of the migrated file
4245
comma_separated_list_of_results : str, optional
@@ -197,7 +200,10 @@ def _spec():
197200
type_names=["bool"],
198201
optional=True,
199202
document="""Converts double to float to reduce file size
200-
(default is true)""",
203+
(default is true).if false, nodal
204+
results are exported as double
205+
precision and elemental results as
206+
single precision.""",
201207
),
202208
0: PinSpecification(
203209
name="filename",
@@ -426,7 +432,10 @@ def export_floats(self):
426432
"""Allows to connect export_floats input to the operator.
427433
428434
Converts double to float to reduce file size
429-
(default is true)
435+
(default is true).if false, nodal
436+
results are exported as double
437+
precision and elemental results as
438+
single precision.
430439
431440
Parameters
432441
----------
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)