Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/ansys/dpf/core/data_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def set_result_file_path(self, filepath, key=""):
['/tmp/file.rst']

"""
extension = Path(filepath).suffix
filepath = Path(filepath)
extension = filepath.suffix
# Handle .res files from CFX
if key == "" and extension == ".res":
key = "cas"
Expand Down Expand Up @@ -199,6 +200,7 @@ def set_domain_result_file_path(
>>> data_sources.set_domain_result_file_path('/tmp/file1.sub', 1)

"""
path = Path(path)
if key:
self._api.data_sources_set_domain_result_file_path_with_key_utf8(
self, str(path), key, domain_id
Expand Down
Loading