adamspy package¶
Subpackages¶
- adamspy.acar package
- adamspy.adripy package
- Submodules
- adamspy.adripy.constants module
- adamspy.adripy.database module
- adamspy.adripy.drillsim module
- adamspy.adripy.event module
- adamspy.adripy.hole module
- adamspy.adripy.solver_settings module
- adamspy.adripy.string module
- adamspy.adripy.tool module
- adamspy.adripy.utilities module
- Module contents
- adamspy.aviewpy package
- adamspy.postprocess package
- adamspy.waterfall package
Submodules¶
adamspy.adamspy module¶
Functions for manipulating adams files and data
-
exception
adamspy.adamspy.
AviewError
[source]¶ Bases:
Exception
Raise this error to if a known error occurs in the log file.
-
adamspy.adamspy.
get_log_errors
(log_file)[source]¶ Checks the log file for errors of the type AviewError.
Parameters: log_file (str) – Filename of aview log file (usulally aview.log)
-
adamspy.adamspy.
get_n_threads
(adm_file)[source]¶ Searches adm_file for the NTHREADS statement and returns its value.
Parameters: adm_file (str) – Path to an Adams Dataset (.adm) file Returns: Number of threads set adm_file Return type: int
-
adamspy.adamspy.
get_simdur_from_acf
(acf_file)[source]¶ Reads an Adams command file (.acf) and returns the total duration of the simulation.
Parameters: acf_file (str) – Filepath to an Adams message file (.msg) Raises: RuntimeError
– Returned if no simulation end time was found in the specified message fileReturns: Total duration of the simulation Return type: float
-
adamspy.adamspy.
get_simdur_from_msg
(msg_file)[source]¶ Reads an Adams message file (.msg) and returns the total duration of the simulation.
Parameters: msg_file (str) – Filepath to an Adams message file (.msg) Raises: RuntimeError
– Returned if no simulation end time was found in the specified message fileReturns: Total duration of the simulation Return type: float