Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new 90D rupture set config #80

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions runzi/automation/run_coulomb_rupture_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@

# If you wish to override something in the main config, do so here ..
WORKER_POOL_SIZE = 1
JVM_HEAP_MAX = 58
JAVA_THREADS = 16
JVM_HEAP_MAX = 48
JAVA_THREADS = 12
INITIAL_GATEWAY_PORT = 26533 #set this to ensure that concurrent scheduled tasks won't clash

#If using API give this task a descriptive setting...
TASK_TITLE = "Build Coulomb full CFM 0.9C D90 with corrected rake orientation"
TASK_TITLE = "Build Coulomb full CFM 0.9D D90 with reduced TVZ depths"

TASK_DESCRIPTION = """
"""
TASK_DESCRIPTION = """sweeping jump_limits"""

def build_tasks(general_task_id, args):
"""
Expand Down Expand Up @@ -111,13 +110,13 @@ def build_tasks(general_task_id, args):
#USE_API = False
GENERAL_TASK_ID = None

#limit test size, nomally 1000 for NZ CFM
#limit test size, nominally 2000 for NZ CFM
MAX_SECTIONS = 2000

args = dict(
##Test parameters
models = ["CFM_0_9C_SANSTVZ_D90"], #, "CFM_0_9_ALL_D90","CFM_0_9_SANSTVZ_2010"]
jump_limits = [15], #default is 15
models = ["CFM_0_9D_SANSTVZ_D90"], #, "CFM_0_9C_SANSTVZ_2010", "CFM_0_9_SANSTVZ_2010"
jump_limits = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15], #default is 15
adaptive_min_distances = [6,], #9] default is 6
thinning_factors = [0,], #5, 0.1, 0.2, 0.3] #, 0.05, 0.1, 0.2]
min_sub_sects_per_parents = [2], #3,4,5]
Expand All @@ -126,6 +125,8 @@ def build_tasks(general_task_id, args):
# use_inverted_rakes=[True]
)

args['jump_limits'].reverse()

args_list = []
for key, value in args.items():
args_list.append(dict(k=key, v=value))
Expand Down
13 changes: 9 additions & 4 deletions runzi/automation/scaling/coulomb_rupture_set_builder_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@

import time

CLUSTER_MODE = os.getenv('NZSHM22_SCRIPT_CLUSTER_MODE', False)

API_URL = os.getenv('NZSHM22_TOSHI_API_URL', "http://127.0.0.1:5000/graphql")
API_KEY = os.getenv('NZSHM22_TOSHI_API_KEY', "")
S3_URL = os.getenv('NZSHM22_TOSHI_S3_URL',"http://localhost:4569")
from runzi.automation.scaling.local_config import (OPENSHA_ROOT, WORK_PATH, OPENSHA_JRE, FATJAR,
JVM_HEAP_MAX, JVM_HEAP_START, USE_API, JAVA_THREADS,
API_KEY, API_URL, S3_URL, CLUSTER_MODE)

# CLUSTER_MODE = os.getenv('NZSHM22_SCRIPT_CLUSTER_MODE', False)

# API_URL = os.getenv('NZSHM22_TOSHI_API_URL', "http://127.0.0.1:5000/graphql")
# API_KEY = os.getenv('NZSHM22_TOSHI_API_KEY', "")
# S3_URL = os.getenv('NZSHM22_TOSHI_S3_URL',"http://localhost:4569")

class RuptureSetBuilderTask():
"""
Expand Down