Skip to content

Commit

Permalink
ADD TIMESTAMP
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi committed Jul 22, 2022
1 parent c02c4a0 commit 4ce75de
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ansys/dpf/core/server_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,12 @@ def __init__(self,
super().__init__()
self._own_process = False
self.ansys_path = ansys_path
from datetime import datetime
current_time = datetime.now().strftime("%H:%M:%S")
warnings.warn(UserWarning(f"=================!!!!!!!!!!!!========="
f"trying to load api with {ansys_path}"
f""
f""
f"{current_time}"
f""))
self._client_api_path = load_api.load_client_api(ansys_path=ansys_path)

Expand Down Expand Up @@ -620,10 +622,12 @@ def __init__(self,
timeout=None):
# Load DPFClientAPI
super().__init__(ansys_path=ansys_path, load_operators=load_operators)
from datetime import datetime
current_time = datetime.now().strftime("%H:%M:%S")
warnings.warn(UserWarning(f"=================!!!!!!!!!!!!========="
f"LOADED API WITH {self._client_api_path}"
f""
f""
f"{current_time}"
f""))
# Load DataProcessingCore
from ansys.dpf.gate.utils import data_processing_core_load_api
Expand All @@ -638,10 +642,11 @@ def __init__(self,
f"DPF directory not found at {os.path.dirname(path)}"
f"Unable to locate the following file: {path}")
raise e
current_time = datetime.now().strftime("%H:%M:%S")
warnings.warn(UserWarning(f"=================!!!!!!!!!!!!========="
f"LOADED DPC WITH {path}"
f""
f""
f"{current_time}"
f""))
data_processing_capi.DataProcessingCAPI.data_processing_initialize_with_context(1, None)
self.set_as_global(as_global=as_global)
Expand Down

0 comments on commit 4ce75de

Please sign in to comment.