Skip to content

Commit 4ce75de

Browse files
committed
ADD TIMESTAMP
1 parent c02c4a0 commit 4ce75de

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ansys/dpf/core/server_types.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -459,10 +459,12 @@ def __init__(self,
459459
super().__init__()
460460
self._own_process = False
461461
self.ansys_path = ansys_path
462+
from datetime import datetime
463+
current_time = datetime.now().strftime("%H:%M:%S")
462464
warnings.warn(UserWarning(f"=================!!!!!!!!!!!!========="
463465
f"trying to load api with {ansys_path}"
464466
f""
465-
f""
467+
f"{current_time}"
466468
f""))
467469
self._client_api_path = load_api.load_client_api(ansys_path=ansys_path)
468470

@@ -620,10 +622,12 @@ def __init__(self,
620622
timeout=None):
621623
# Load DPFClientAPI
622624
super().__init__(ansys_path=ansys_path, load_operators=load_operators)
625+
from datetime import datetime
626+
current_time = datetime.now().strftime("%H:%M:%S")
623627
warnings.warn(UserWarning(f"=================!!!!!!!!!!!!========="
624628
f"LOADED API WITH {self._client_api_path}"
625629
f""
626-
f""
630+
f"{current_time}"
627631
f""))
628632
# Load DataProcessingCore
629633
from ansys.dpf.gate.utils import data_processing_core_load_api
@@ -638,10 +642,11 @@ def __init__(self,
638642
f"DPF directory not found at {os.path.dirname(path)}"
639643
f"Unable to locate the following file: {path}")
640644
raise e
645+
current_time = datetime.now().strftime("%H:%M:%S")
641646
warnings.warn(UserWarning(f"=================!!!!!!!!!!!!========="
642647
f"LOADED DPC WITH {path}"
643648
f""
644-
f""
649+
f"{current_time}"
645650
f""))
646651
data_processing_capi.DataProcessingCAPI.data_processing_initialize_with_context(1, None)
647652
self.set_as_global(as_global=as_global)

0 commit comments

Comments
 (0)