Skip to content

Commit

Permalink
add uat2 env
Browse files Browse the repository at this point in the history
  • Loading branch information
qingeng authored and momchil-flex committed Aug 22, 2023
1 parent e5e741e commit 668e018
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tidy3d/web/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
""" imports interfaces for interacting with server """
from .cli.migrate import migrate
from .webapi import run, upload, get_info, start, monitor, delete, download, load, estimate_cost
from .webapi import (
run,
upload,
get_info,
start,
monitor,
delete,
download,
load,
estimate_cost,
abort,
)
from .webapi import get_tasks, delete_old, download_log, download_json, load_simulation, real_cost
from .container import Job, Batch, BatchData
from .cli import tidy3d_cli
Expand Down
19 changes: 19 additions & 0 deletions tidy3d/web/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ def get_real_url(self, path: str) -> str:
website_endpoint="https://uat-tidy3d.simulation.cloud",
)

uat2 = EnvironmentConfig(
name="uat2",
s3_region="us-west-2",
web_api_endpoint="https://tidy3d-api.uat-simulation.cloud",
website_endpoint="https://tidy3d.uat-simulation.cloud",
)

prod = EnvironmentConfig(
name="prod",
s3_region="us-gov-west-1",
Expand All @@ -72,6 +79,7 @@ class Environment:
env_map = dict(
dev=dev,
uat=uat,
uat2=uat2,
prod=prod,
)

Expand Down Expand Up @@ -124,6 +132,17 @@ def uat(self) -> EnvironmentConfig:
"""
return uat

@property
def uat2(self) -> EnvironmentConfig:
"""Get the uat2 environment.
Returns
-------
EnvironmentConfig
The config for the uat environment.
"""
return uat2

@property
def prod(self) -> EnvironmentConfig:
"""Get the prod environment.
Expand Down

0 comments on commit 668e018

Please sign in to comment.