adamspy
adamspy is a python package designed for CAE analysts who use Adams to automate manipulation of files and data outside of the Adams environment.
Installation
pip install adamspy
Setting Environment variables
Before importing adamspy into your python script you need to set some environment variables to allow adamspy to communicate with your adams installation. Here are the the environment variables you need to set.
| Variable | Value | |
|---|---|---|
| ADRILL_USER_CFG | Full path to the user adrill cfg file (e.g. C:\users\user_name.adrill.cfg) | Optional |
| ADRILL_SHARED_CFG | Full path to the shared adrill cfg file (e.g. C:\MSC.Software\Adams\2018\adrill\adrill.cfg) | Optional |
| ADAMS_LAUNCH_COMMAND | Full path to the adams launch command (e.g. C:\MSC.Software\Adams\2018\common\mdi.bat) |
Usage
The adamspy.postprocess package and its submodules likely contain the most useful tools in this library.
Here is an example of getting results from an Adams results .res file
from adamspy.postprocess.ppt import get_results
result_file = 'example.res'
t_min = 70
t_max = 80
reqs_to_get = {}
reqs_to_get['MSE'] = ['Instantaneous_Bottom_MSE', 'Filtered_Surface_MSE']
reqs_to_get['ROP_controls'] = ['Command_ROP', 'True_WOB']
requests, units = get_results(result_file, reqs_to_get, t_min, t_max)
Adams Drill
The adamspy.adripy package contains tools for automating Adams drill.
Please see the documentation here: https://bthornton191.github.io/adamspy/#
Metadata
Release files for adamspy 0.33.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| adamspy-0.33.0.tar.gz | 96.7 kB | Without provenance | Details for adamspy-0.33.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adamspy-0.33.0-py3-none-any.whl | Python 3 | none | any | Details for adamspy-0.33.0-py3-none-any.whl |
Total release size: 184.1 kB
Release files / adamspy-0.33.0.tar.gz
| Download URL | adamspy-0.33.0.tar.gz |
|---|---|
| Size | 96.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4321089677e330746c64266fac2fb1ef2b5cc08aa7a43b4f513ccd1a5d0cf0e8
|
|
BLAKE2b-256 checksum How to use checksums |
88243d05a6fdb8342f5d6585d5bb84e3abdcb15063b69da13de10949cedc03a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Release files / adamspy-0.33.0-py3-none-any.whl
| Download URL | adamspy-0.33.0-py3-none-any.whl |
|---|---|
| Size | 87.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a57caa30db303c51b547dfadd7f0311422dfed08fb5f1bd920014ff384aba028
|
|
BLAKE2b-256 checksum How to use checksums |
5a5a019e3069f5c07387f6d55df0d3e249ab2295f4e9373b8c7107c873bf1681
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Security for adamspy 0.33.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.