Skip to content

Commit 118922f

Browse files
🎉 RELEASE: Merged refs/tags/v2.9.2 into target latest
2 parents 277dcc7 + 7e9d515 commit 118922f

File tree

11 files changed

+724
-75
lines changed

11 files changed

+724
-75
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Fixed
1515

16+
## [v2.9.2]
17+
18+
### Added
19+
20+
### Changed
21+
- Improved Nexus platform configuration support and instantiation. Includes improvements to use the new `tidy3d configure ... --nexus-url <url>` CLI functionality.
22+
23+
### Fixed
1624

1725
## [v2.9.1] - 2025-08-13
1826

docs/api/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ API |:computer:|
2525
logging
2626
utilities
2727
submit_simulations
28+
nexus_config
2829
mesh/index
2930
heat/index
3031
charge/index
@@ -55,6 +56,7 @@ API |:computer:|
5556
.. include:: /api/scene.rst
5657
.. include:: /api/logging.rst
5758
.. include:: /api/submit_simulations.rst
59+
.. include:: /api/nexus_config.rst
5860
.. include:: /api/mesh/index.rst
5961
.. include:: /api/heat/index.rst
6062
.. include:: /api/charge/index.rst

docs/api/nexus_config.rst

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
.. currentmodule:: tidy3d
2+
3+
Nexus Environment Configuration
4+
================================
5+
6+
Overview
7+
--------
8+
9+
The Nexus environment enables Tidy3D to connect to custom on-premises or private cloud deployments for enterprise customers.
10+
11+
.. note::
12+
This feature is for enterprise customers with custom Tidy3D deployments. Most users should use the standard API key setup with the default production environment.
13+
14+
Quick Start
15+
-----------
16+
17+
**Simple setup** using the convenience option:
18+
19+
.. code-block:: bash
20+
21+
tidy3d configure --apikey YOUR_KEY \
22+
--nexus-url http://your-server
23+
24+
This automatically sets:
25+
26+
- API endpoint: ``http://your-server:5000``
27+
- Website endpoint: ``http://your-server/tidy3d``
28+
- S3 endpoint: ``http://your-server:9000``
29+
30+
**Advanced setup** with individual endpoints:
31+
32+
.. code-block:: bash
33+
34+
tidy3d configure --apikey YOUR_KEY \
35+
--api-endpoint http://your-server:5000 \
36+
--website-endpoint http://your-server/tidy3d
37+
38+
Or configure only Nexus endpoints (preserves existing API key):
39+
40+
.. code-block:: bash
41+
42+
tidy3d configure --nexus-url http://your-server
43+
44+
Configuration
45+
-------------
46+
47+
Command Syntax
48+
~~~~~~~~~~~~~~
49+
50+
.. code-block:: bash
51+
52+
tidy3d configure [--apikey <key>] [--nexus-url <url> | --api-endpoint <url> --website-endpoint <url>] [OPTIONS]
53+
54+
**Options:**
55+
56+
* ``--apikey <key>``: API key (prompts if not provided and no Nexus options given)
57+
* ``--nexus-url <url>``: Nexus base URL (convenience option that automatically sets all endpoints)
58+
* ``--api-endpoint <url>``: Nexus API server URL (overridden by ``--nexus-url``)
59+
* ``--website-endpoint <url>``: Nexus web interface URL (overridden by ``--nexus-url``)
60+
* ``--s3-region <region>``: S3 region (default: us-east-1)
61+
* ``--s3-endpoint <url>``: S3 storage URL (overridden by ``--nexus-url``)
62+
* ``--ssl-verify`` / ``--no-ssl-verify``: SSL verification (default: disabled)
63+
* ``--enable-caching`` / ``--no-caching``: Result caching (default: disabled)
64+
65+
Examples
66+
~~~~~~~~
67+
68+
.. code-block:: bash
69+
70+
# Simple configuration using nexus-url (recommended)
71+
tidy3d configure --apikey XXX \
72+
--nexus-url http://ec2-instance.compute.amazonaws.com
73+
74+
# Configure individual endpoints
75+
tidy3d configure --apikey XXX \
76+
--api-endpoint http://api.company.com:5000 \
77+
--website-endpoint http://tidy3d.company.com
78+
79+
# Add Nexus to existing configuration
80+
tidy3d configure --nexus-url http://api.company.com
81+
82+
# With all options
83+
tidy3d configure --apikey XXX \
84+
--api-endpoint https://api.company.com \
85+
--website-endpoint https://tidy3d.company.com \
86+
--s3-region eu-west-1 \
87+
--s3-endpoint http://s3.company.com:9000 \
88+
--ssl-verify \
89+
--enable-caching
90+
91+
Configuration File
92+
~~~~~~~~~~~~~~~~~~
93+
94+
Settings are stored in ``~/.tidy3d/config`` (Windows: ``C:\Users\username\.tidy3d\config``):
95+
96+
.. code-block:: toml
97+
98+
apikey = "your-api-key"
99+
web_api_endpoint = "http://your-server:5000"
100+
website_endpoint = "http://your-server/tidy3d"
101+
s3_region = "us-east-1"
102+
s3_endpoint = "http://127.0.0.1:9000"
103+
ssl_verify = false
104+
enable_caching = false
105+
106+
Python Usage
107+
------------
108+
109+
No code changes required. Tidy3D automatically uses the configured endpoints:
110+
111+
.. code-block:: python
112+
113+
import tidy3d as td
114+
import tidy3d.web as web
115+
116+
sim = td.Simulation(...)
117+
sim_data = web.run(sim, task_name="my_sim")
118+
119+
120+
Removing Configuration
121+
----------------------
122+
123+
Delete the entire file and reconfigure:
124+
125+
.. code-block:: bash
126+
127+
rm ~/.tidy3d/config
128+
tidy3d configure --apikey=YOUR_API_KEY
129+
130+
Troubleshooting
131+
---------------
132+
133+
**Verify configuration:**
134+
135+
.. code-block:: python
136+
137+
from tidy3d.web.core.environment import Env
138+
print(Env.current.name, Env.current.web_api_endpoint)
139+
140+
**Test connectivity:**
141+
142+
.. code-block:: bash
143+
144+
curl http://your-api-endpoint:5000/health
145+
export TIDY3D_ENV=prod && python -c "import tidy3d.web as web; web.test()"
146+
147+
See Also
148+
--------
149+
150+
* :doc:`submit_simulations` - Submitting and managing simulations
151+
* :doc:`../install` - Installation and API key setup

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tidy3d"
3-
version = "2.9.1"
3+
version = "2.9.2"
44
description = "A fast FDTD solver"
55
authors = ["Tyler Hughes <[email protected]>"]
66
license = "LGPLv2+"

tests/sims/full_fdtd.h5

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)