Skip to content

Commit 9b6476d

Browse files
committed
Add OpenSeesMP example
1 parent b2b773f commit 9b6476d

8 files changed

Lines changed: 333 additions & 1120 deletions

File tree

dapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _get_version():
8282
"""Read version from pyproject.toml"""
8383
import tomllib
8484
from pathlib import Path
85-
85+
8686
try:
8787
pyproject_path = Path(__file__).parent.parent / "pyproject.toml"
8888
with open(pyproject_path, "rb") as f:

dapi/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,10 @@ def generate_request(
355355
memory_mb (int, optional): Memory in MB. Overrides app default.
356356
queue (str, optional): Execution queue name. Overrides app default.
357357
allocation (str, optional): TACC allocation to charge for compute time.
358-
archive_system (str, optional): Archive system for job outputs. Use "designsafe"
358+
archive_system (str, optional): Archive system for job outputs. Use "designsafe"
359359
for designsafe.storage.default. If None, uses app default.
360-
archive_path (str, optional): Archive directory path. Can be a full path or just
361-
a directory name in MyData. If None and archive_system is "designsafe",
360+
archive_path (str, optional): Archive directory path. Can be a full path or just
361+
a directory name in MyData. If None and archive_system is "designsafe",
362362
defaults to "tapis-jobs-archive/${JobCreateDate}/${JobUUID}".
363363
extra_file_inputs (List[Dict[str, Any]], optional): Additional file inputs.
364364
extra_app_args (List[Dict[str, Any]], optional): Additional app arguments.

dapi/jobs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def generate_job_request(
8383
archive_system (str, optional): Archive system for job outputs. If "designsafe" is specified,
8484
uses "designsafe.storage.default". If None, uses app default.
8585
archive_path (str, optional): Archive directory path. Can be a full path or just a directory name
86-
in MyData (e.g., "tapis-jobs-archive"). If None and archive_system is "designsafe",
86+
in MyData (e.g., "tapis-jobs-archive"). If None and archive_system is "designsafe",
8787
defaults to "${EffectiveUserId}/tapis-jobs-archive/${JobCreateDate}/${JobUUID}".
8888
extra_file_inputs (List[Dict[str, Any]], optional): Additional file inputs beyond the main input directory.
8989
extra_app_args (List[Dict[str, Any]], optional): Additional application arguments.
@@ -135,11 +135,11 @@ def generate_job_request(
135135
final_description = (
136136
description or app_details.description or f"dapi job for {app_details.id}"
137137
)
138-
138+
139139
# Handle archive system configuration
140140
archive_system_id = None
141141
archive_system_dir = None
142-
142+
143143
if archive_system:
144144
if archive_system.lower() == "designsafe":
145145
archive_system_id = "designsafe.storage.default"
@@ -164,7 +164,7 @@ def generate_job_request(
164164
# Use app defaults
165165
archive_system_id = getattr(job_attrs, "archiveSystemId", None)
166166
archive_system_dir = getattr(job_attrs, "archiveSystemDir", None)
167-
167+
168168
job_req = {
169169
"name": final_job_name,
170170
"appId": app_details.id,

examples/opensees/DS_GenFunctionsV3.py

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)