Skip to content

Commit c02c4a0

Browse files
committed
ADD WARNINGS FOR DEBUG
1 parent d1ae076 commit c02c4a0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

ansys/dpf/core/server_types.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,11 @@ def __init__(self,
620620
timeout=None):
621621
# Load DPFClientAPI
622622
super().__init__(ansys_path=ansys_path, load_operators=load_operators)
623+
warnings.warn(UserWarning(f"=================!!!!!!!!!!!!========="
624+
f"LOADED API WITH {self._client_api_path}"
625+
f""
626+
f""
627+
f""))
623628
# Load DataProcessingCore
624629
from ansys.dpf.gate.utils import data_processing_core_load_api
625630
from ansys.dpf.gate import data_processing_capi
@@ -629,10 +634,15 @@ def __init__(self,
629634
data_processing_core_load_api(path, "common")
630635
except Exception as e:
631636
if not os.path.isdir(os.path.dirname(path)):
632-
raise NotADirectoryError(
637+
raise NotADirectoryError(
633638
f"DPF directory not found at {os.path.dirname(path)}"
634639
f"Unable to locate the following file: {path}")
635640
raise e
641+
warnings.warn(UserWarning(f"=================!!!!!!!!!!!!========="
642+
f"LOADED DPC WITH {path}"
643+
f""
644+
f""
645+
f""))
636646
data_processing_capi.DataProcessingCAPI.data_processing_initialize_with_context(1, None)
637647
self.set_as_global(as_global=as_global)
638648

0 commit comments

Comments
 (0)